Forum Discussion

pooneh_ce's avatar
pooneh_ce
Frequent Visitor
8 years ago
Solved

usage of REST API output from report server(PowerBIReports( ID)/Content/$value method)

I use get method : PowerBIReports( ID)/Content/$value of report server, the output is a a binary file. how can I process this content am embed it into my application?

the header of out put is look like this:

Cache-Control:
no-cache
Content-Length:24 kilobytes
Content-Type:application/octet-stream
Server:Microsoft-HTTPAPI/2.0
X-Content-Type-Options:nosniff
Set-Cookie:
XSRF-NONCE=53 B, session, HttpOnly
/reports
Set-Cookie:
XSRF-TOKEN=11 B, session
/reports
Content-Disposition:attachment; filename=test.pbix
Date:
Tue, 05 Dec 2017 09:26:14 GMT-1s
  • mgmeyer's avatar
    mgmeyer
    8 years ago

    The API your using above is more equivalent to the ExportReport API in PowerBI as it will only download the PBIX file. We do support embedding the report as mentioned in the other reply but we don't currently have a javascript API to interacte with the embedded report, however it is something on our backlog. If you want to request the capability/feature you can post you idea here.

4 Replies

    • pooneh_ce's avatar
      pooneh_ce
      Frequent Visitor

      @v-qiuyu-msft Thanks for your reply, but I don't want to use an iframe and access url, I want do the same thing that exists for  power bi on cloud( sample link: https://docs.microsoft.com/en-us/power-bi/developer/integrate-report ). I think the new rest APIs for  power bi report server have the same functionality, It is true or not?

      I tried to ask this question multiple times in this forum but I didn't get my answer till now.

      I had read all documetation about new version of power bi report server and I found solutions like the one you mentioned, but my requirement is some thing else, I need to use rest APIs.

       

      • mgmeyer's avatar
        mgmeyer
        Power BI Team

        The API your using above is more equivalent to the ExportReport API in PowerBI as it will only download the PBIX file. We do support embedding the report as mentioned in the other reply but we don't currently have a javascript API to interacte with the embedded report, however it is something on our backlog. If you want to request the capability/feature you can post you idea here.