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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.