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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Kudoed Authors