Questions about Content Folders & API Access

Stephen Short shared this question 1 year ago
Answered

I've got a couple of questions regarding Content folders & sharing.

The first question is - I'm currently working on a plan to utilize sharing reports grouped within content folders to specific groups from Client Organizations. In other words:

Top Level Content Folder -> Sub Content Folder (shared with: Group A at Client Org A, Group B at Client Org B)

I'm able to achieve this of course through the UI, however what I'd specifically like to know is if there is a way to do this programmatically? Through web services I'm able to create/edit groups which will help with the report deployment plan I'm working on, however I don't see any APIs for editing the sharing of a content folder. Are there any APIs / ways that I could do this through the admin web services? If such an API was available I'd be able to programmatically create/edit groups, and assign those groups the appropriate content folders. If there is no API available, would this be something easily doable through inserts on the database? I was looking through the various table structure in the YF database but was unable to locate how sharing is set for each content folder / subcategory. Any ideas on that?


The second question I have is -

Is it possible to navigate directly to a specific content folder programmatically? Say for instance we have this content folder structure:

Top Level Folder

- Sub Folder A

- Sub Folder B

- Sub Folder C

Is it possible for me to either

a.) Through the LOGINUSER service, land on the browse page with the specific sub folder opened (Like land on browse Reports with the default location being Sub Folder B)?

b.) Use a redirect to manually set the URL in a way to land on Sub Folder B directly? window.location.href is set to the `MIPreReports.i4` page, however navigating through different content folders doesn't change the href as it seems like you're using a SPA approach to the browse page. Any way to load `MIPreReports.i4` and specify a URL parameter to load to a specific content folder by default?

Comments (4)

photo
1

Hi Stephen,

In response to your first question:

No, but this seems like a reasonable and do-able enhancement request.

Regarding the config db adjustments, this should be in the accesslevel table.

In response to your second question:

I dont think so, though I will dig a bit into this over the next couple of days and see if I can confirm either way.

Regards,

Nathan

photo
1

Hi Stephen,

Unfortunately it does not appear possible to redirect the browse page in the same way as reports. Though it turns out that this has already been requested:

https://community.yellowfinbi.com/agent/object/5073

Sorry for the trouble. If you are interested in pursuing the first request as an enhancement I would recommend creating an "Idea" topic so that it can be reviewed by our product team.

Regards,

Nathan

photo
1

Hi Stephen,

I am going to set this ticket to closed for now, but if there is anything else I can do to help here, please just let me know and the case will be re-opened!


Regards,

Nathan