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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Dan2
Helper I
Helper I

Getting an access token for a dataset scheduled refresh

I need an automated way to get an access token during a dataset scheduled refresh. We have powerbi reports which use an odata datasource but the odata datasource requires a token to access the data. Getting the data is not an issue if you are using the powerbi report locally.  The issue is when the schedule dataset refresh starts it will require a new access token. 

 

I think the only way may be to add some custom code to each powerbi report to get the access token. But since we have many reports that we use and deploy, this would be an undertaking. Also I am not sure of the custom code to use for this scenario. Any ideas would be really appreciated. Thanks.

1 REPLY 1
lbendlin
Super User
Super User

Usually processes like these require you to build a custom connector.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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