This section describes the sequence of calls that you must perform to create a Web
Intelligence document that contains a report, and to save it to a specific
folder.
It is assumed in this sequence that you know the universe identifier, the dimensions, and
attributes to build the query specification, and how to get the report
specification.
Note <bipURL> represents the default base URL that you must use to access
SAP BusinessObjects BI platform RESTful web services. See the BI Platform RESTful
Web Service Developer Guide for more information.
- Login to the CMS repository using POST <bipURL>/Logon/Long to get the
logon token.
- Retrieve the document folder ID using GET
<bipURL>/infostore/cuid_{cuid}.
- Create a Web Intelligence document using POST <webiURL>/documents.
- Create a report for the document using POST
<webiURL>/documents/{documentId}/reports.
- Choose a universe by adding a data provider to the document using POST
<webiURL>/documents/{documentId}/dataproviders.
- To create your query, add a query specification based on the data provider of the document
using POST
<webiURL>/documents/{documentId}/dataproviders/{dataProviderId}/specification.
- Run your query to get the document data using PUT
<webiURL>/documents/{documentId}/parameters.
- To format your report, add the report structure using PUT
<webiURL>/documents/{documentId}/reports/{reportId}/specification.
- Refresh the document using PUT
<webiURL>/documents/{documentId}/parameters.
- Save the document using PUT <webiURL>/documents/{documentId}.