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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
TusharMK
New Member

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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