Having launched a scheduled report in SAP BO, is it possible to somehow download from the file repository server?
I am working with the Web Intelligence RESTful API. While it is possible to export a report synchronously using the GET /documents/<documentID>?<optional_parameters>
request, I have not found any non-blocking asynchronous way except for using schedules.
Here's the intended workflow:
- Create a scheduled report ("now") using
POST /documents/<documentID>/schedules
. Use a custom unique<ReportName>
, store thescheduleID
- Poll the schedule status using
GET /documents/<documentID>/schedules/<scheduleID>
- If the schedule status is 1 (success), find the file using a CMS query
Send a
POST /cmsquery
with content{query: "select * from ci_infoObjects where si_instance=1 and si_schedule_status in (1) and si_name = '<ReportName>'"}
From the result, read"SI_FILES": {"SI_FILE1": "<generatedName>.pdf","SI_VALUE1": 205168,"SI_NUM_FILES":1,"SI_PATH": "frs://Output/<Path>"}
- Using the browser or the RESTful API, download the file
Is step 4 possible at all? What would be the URL?
The internal base path can be configured in the CMC, and the file location would be <Path>/<generatedName>.pdf
. But how can this file be accessed programmatically OR using an URL without the need to log into the BO BI interface?