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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Export Power BI report data to CSV using REST API

Hi Power BI Community,

 

I am a RPA Developer, planning to build an automation using UiPath which will download 20-30 reports's summarized data into CSV format using REST API for in house Finance team. I do not have much experince on APIs.

List of questions:

  • Should I use App owns data or User owns data.
  • Service principal or Master, or any other method?
  • Authentication method?
  • How to generate access token?
  • Does it involve user sign in?
  • What additional settings I need to do on Azure AD?
  • Settings required on Power BI?
  • Any other information which you can provide, which I have not covered.

Thanks,

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

  • Should I use App owns data or User owns data. - That's for the Power BI App owner to decide, not you.
  • Service principal or Master, or any other method? - Service Principal or AD user
  • Authentication method? - Entra ID preferred/OAUTH2
  • How to generate access token? - described in the documentation
  • Does it involve user sign in? - not if you use an app registration
  • What additional settings I need to do on Azure AD? - make sure the app scope includes Dataset.Read.All
  • Settings required on Power BI? - n/a
  • Any other information which you can provide, which I have not covered. - When running DAX queries against the XMLA endpoint make sure to include nulls else your CSV will be all crooked.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

  • Should I use App owns data or User owns data. - That's for the Power BI App owner to decide, not you.
  • Service principal or Master, or any other method? - Service Principal or AD user
  • Authentication method? - Entra ID preferred/OAUTH2
  • How to generate access token? - described in the documentation
  • Does it involve user sign in? - not if you use an app registration
  • What additional settings I need to do on Azure AD? - make sure the app scope includes Dataset.Read.All
  • Settings required on Power BI? - n/a
  • Any other information which you can provide, which I have not covered. - When running DAX queries against the XMLA endpoint make sure to include nulls else your CSV will be all crooked.

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.