Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export SSRS 2017 report using REST API

I've setup SSRS 2017.I need to export an SSRS report using their new REST API, I've been looking through the API specification here but I can't find a method in swagger specification to render/export that report using an HTTP client. This Question maybe asking for same that i'm looking for.

like image 426
Aarif Avatar asked Dec 12 '17 19:12

Aarif


1 Answers

This appears to be somewhat out of date. You can download a report which is in .rdl format directly from the API:

Check out: https://app.swaggerhub.com/apis/danmonteiro/SSRS-ageradora/2.0#/Reports/GetReportContent

Here's an example url that sends back the file:

http://10.0.15.78/reports/api/v2.0/Reports(8bf3f3c9-8f72-4c1a-b9bb-54b8ff1d6729)/Content/$value

I just tried this against report server in the browser and it immediately asked where I wanted to save the file.

like image 62
Norbert Norbertson Avatar answered Oct 21 '22 23:10

Norbert Norbertson