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

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

Reply
YasirKazi77
Frequent Visitor

Token Parameter in connection string

Hello,

I have a POwer BI report where I am getting data from LeanKit using an API end point . The API end point requires a token to be added to the request (example attached) . The token is valid for 7 days , so I need to replace it every week. 

I was wondering if there was a way to create a paramter for the connection string and read the token from a text file so that I dont have to modify the connection string every week.

I will only place the new token in the text file and the data "Refresh" process will read the tocken from the text file.

 

PowerBI Connection with Token.jpg

1 REPLY 1
amitchandak
Super User
Super User

@YasirKazi77 , refer if these past solution can help(similar not excat)

https://community.powerbi.com/t5/Power-Query/Power-Query-API-Source-dynamic-token/td-p/983710

or

https://www.youtube.com/watch?v=N8qYRSqRz84

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.

Top Kudoed Authors