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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
revathi_p4
Frequent Visitor

how to access Powerbi service APIs from Powerbi Desktop

 

getting below error while accessing APIs from powerbi desktop. Please help me with the procedure to call the powerbi APIs from powerbi desktop. 

 

revathi_p4_0-1669704876898.png

 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @revathi_p4 ,

 

Please check that the credentials have expired, clear the permissions, and try again.

You can try the following:

1.Open Power BI Desktop, when you already created visuals use the existing pbix.

2.go to File --> Options and settings --> Data source settings.
Check "Data sources in current file" and "Global permissions", mark any source and hit "Clear Permissions"; be aware that the source might not dissapear.

3.Close the Data source settings dialog.

4.Hit refresh.

 

You can also use a custom connector, which uses AAD authentication and doesn't require bearer tokens or refresh tokens. 

 

Please refer to the following document for more information.

GitHub - migueesc123/PowerBIRESTAPI: A Microsoft Power BI Data Connector or Power Query Connector fo...

Calling Power BI API using Power BI Desktop to document Power BI Service - Prathy's Blog...

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @revathi_p4 ,

 

Please check that the credentials have expired, clear the permissions, and try again.

You can try the following:

1.Open Power BI Desktop, when you already created visuals use the existing pbix.

2.go to File --> Options and settings --> Data source settings.
Check "Data sources in current file" and "Global permissions", mark any source and hit "Clear Permissions"; be aware that the source might not dissapear.

3.Close the Data source settings dialog.

4.Hit refresh.

 

You can also use a custom connector, which uses AAD authentication and doesn't require bearer tokens or refresh tokens. 

 

Please refer to the following document for more information.

GitHub - migueesc123/PowerBIRESTAPI: A Microsoft Power BI Data Connector or Power Query Connector fo...

Calling Power BI API using Power BI Desktop to document Power BI Service - Prathy's Blog...

 

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

archuleta28
Resolver I
Resolver I

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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