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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rmusalem
Regular Visitor

problen to try to export report to CSV using api 3 in c#

Hello, i have a problem triying to export to file using api 3.0 in c#.

When i am using Client.Reports.GetPage(groupId, reportId, pageName) always return me "Error to send the request". what i am doing wrong.

The APP is well configured because I created the APP in azure (power bi Embedded) using the wizard, and download the sample project, after that i implemented the Api rest v3 (using the microsoft example) but always get the same error.

 

Client.Reports.GetPage(groupId, reportId, pageName)

 

i am trying to use this code,  but always get the same error . i have the token, the apiurl, the group id and report id. 

 

var tokenCredentials = new TokenCredentials(dm_token, "Bearer");
var Client = new PowerBIClient(new Uri(dm_ApiUrl), tokenCredentials);
Pages GetPage = Client.Reports.GetPagesInGroup(groupId,reportId );

 

 

2 REPLIES 2
lbendlin
Super User
Super User

is this a personal workspace, a regular one, or a Premium workspace?

hi , i am using a corporate account, embedded power bi report.  we load report without problem, but , when we try to  export report always get the error described. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.