get /ondemand/requests/{requestId}/result

Gets the result of a specific On-Demand request.

Returns the result of the On-Demand request specified by the requestID parameter.

Currently, only requests of type "report" are supported. If the request exists but is of type "task", this method returns a 404 error.

The content-type depends on the report output format specified in the original request. It can be one of:

  • application/msword
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • application/vnd.ms-word.document.macroEnabled.12
  • application/vnd.ms-excel
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • application/vnd.ms-excel.sheet.macroEnabled.12
  • application/vnd.ms-powerpoint
  • application/vnd.openxmlformats-officedocument.presentationml.presentation
  • application/vnd.ms-powerpoint.presentation.macroEnabled.12
  • application/pdf
  • image/png
  • image/jpeg
  • image/tiff
  • image/bmp
  • text/csv
  • text/plain

Path parameters

requestId (required)
The request ID.

Responses

200
Success. The binary result file (base64 encoded) of the request (of type "report") is returned.

400
The ID of the request is malformed.

404
One of the following errors has occurred:Not found.The type of the request was "task", the request ID does not exist, or the request has expired.