on 02-16-2016 10:59 AM
Hello Friends,
I use the following method call to get the list of all the documents 50 at a time.
request.send(BIP_RWS + "/raylight/v1/documents?offset="+offsetindex+"&limit=50", "GET", null);
Is it possible to extract the list of documents from a specific public folder by using the folder name?
Regards,
-Chris
Hi Chris,
No, its not possible with the name. Raylight APIs will return webi documents based on IDs
If you use the platform APIs you will be able to return everything within a specific folder using the Folder ID.
eg: GET .../biprws/infostore/<folderID>/children
that will list all objects within the folder (folders and reports). If you just want webi documents then you can specify the type:
GET ../biprws/infostore/<folderID>?type=webi
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
to get the folder IDs of the public folders, you can first query for the folders under the Public Folders root
GET .../biprws/infostore/23/children?type=folder
this will return the folder names and IDs (23 is the fixed root folder ID in all environments). you can then find the specific folder name you are looking for and get its ID. If its a few levels deep, then just search recursively.
In BI4.2, there is a new API allowing you to pass custom Select queries to the CMS so you will be able to query for an object by name (eg: "Select SI_ID from CI_INFOOBJECTS where SI_NAME='myFolderName' and SI_KIND='Folder' "), but this feature will not be available in BI4.1.
Dan
BI Platform REST APIs reference :
Web Intelligence REST APIs reference :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my case , i have folders and subfolders. i need to fetch all the webi reports from a particular folder and from its subfolders.
Is it possible to fetch all the webi reports within a folder and its sub folders in a single call ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. Not possible in single call.
You have to use "GET .../biprws/infostore/<folderID>/children?type=webi" in loop.
Thanks Dan and Anthony for your help.
Regards,
-CF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.