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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Krishna_009_
New Member

Programmatic Dataset Download on Click (Existing App, Client ID/Secret) - Seeking Detailed Guidance

Need help programmatically downloading a specific Power BI dataset when a user clicks its name in my existing app (already navigates workspaces/datasets). Using Client ID/Secret for authentication.

Questions:

  • Best API endpoint for downloading a specific dataset (by ID)?
  • Is direct .pbix download feasible via API with Dataset ID? If not, alternative data export methods?
  • How to pass the Dataset ID (available on click) to the API?
  • Any auth/auth best practices or limitations?

I'm looking for a detailed explanation or step-by-step guide on how to implement this process, including code examples or clear instructions on API calls and handling responses. Any in-depth assistance would be greatly appreciated.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

First of all you need to make sure the pbix is downloadable. There is a long long list of restrictions here

https://learn.microsoft.com/en-us/power-bi/create-reports/service-export-to-pbix#limitations

 

Then use the standard API call. 

https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-report-in-group

Note that this can be asynchronous depending on the size of the PBIX. So you mayu need to implement additional pollong logic.

 

View solution in original post

4 REPLIES 4
v-sathmakuri
Community Support
Community Support

Hi @Krishna_009_ ,

 

I hope this information proves helpful. Feel free to reach out if you have any further questions or would like to discuss this in more detail. If responses provided answers your question, please accept it as a solution so other community members with similar problems can find a solution faster.

 

Thank you!!

v-sathmakuri
Community Support
Community Support

Hi @Krishna_009_ ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

 

Thank you.

v-sathmakuri
Community Support
Community Support

Hi @Krishna_009_ ,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @lbendlin  for prompt response.

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be

helpful for other community members who have similar problems to solve it faster.

 

Thank you.

lbendlin
Super User
Super User

First of all you need to make sure the pbix is downloadable. There is a long long list of restrictions here

https://learn.microsoft.com/en-us/power-bi/create-reports/service-export-to-pbix#limitations

 

Then use the standard API call. 

https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-report-in-group

Note that this can be asynchronous depending on the size of the PBIX. So you mayu need to implement additional pollong logic.

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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