Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
surya5
New Member

ExportFileInGroup API Call PowerBI. Where can i find the downloaded report

Dear Community,

 

I am trying to use the ExportFileInGroup API to export my PowerBI Report. So, I am using the "Try It" option for testing the API call.

So, I am using the following 2 API calls.

API CALLS:
1. POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/ExportTo

Result: 

{
  "@odata.context": "http://"region"/v1.0/myorg/groups/"grpID"/$metadata#exports/$entity",
  "id": "ID",
  "createdDateTime": "2023-02-07T07:27:57.0539042Z",
  "lastActionDateTime": "2023-02-07T07:27:57.0539042Z",
  "reportId": "ReportID",
  "status": "NotStarted",
  "percentComplete": 0,
  "expirationTime": "0001-01-01T00:00:00Z"
}

 

2. For checking whether the report export is succeeded, 

GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/exports/{exportId}

Result:

{
  "@odata.context": "http://"REGION"/v1.0/myorg/$metadata#exports/$entity",
  "id": "ExportID",
  "createdDateTime": "2023-02-07T07:27:57.0539042Z",
  "lastActionDateTime": "2023-02-07T07:28:17.5714933Z",
  "reportId": "ReportID",
  "reportName": "ReportName",
  "status": "Succeeded",
  "percentComplete": 100,
  "resourceLocation": "https://api.powerbi.com/v1.0/myorg/reports/"ReportID"/exports/"ExportID"/file",
  "resourceFileExtension": ".pdf",
  "expirationTime": "2023-02-08T07:27:57.3193533Z"
}

 But i am not sure where my downloaded report resides.

Can't i use the API calls and download the report into my local "Downloads" Folder?
If Yes, Please guide on the process

Thanks, Surya

0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors