Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone!
I am trying to make an API call in Power Query, for which I need an access_token. This is the script I use to get this access_token:
The response from the script is an access_token, which expires in 10 minutes, and a refresh_token. I can use the refresh_token to make another call, for another access_token. I enter my initial refresh_token in the script above. But I am looking for a way that the next time the script refreshes, it uses the refresh_token from the previous call. Because the refresh_token is no longer valid after calling once.
I have looked into storing the called refresh_token into a parameter, but could not figure it out. Anyone knows how to fix my problem? Many thanks in advance!
@rflea97 my suggestion is, you should try a custom connector and refresh your access token using API with a timestamp. Thank You!!
User | Count |
---|---|
8 | |
5 | |
5 | |
5 | |
4 |
User | Count |
---|---|
12 | |
10 | |
8 | |
6 | |
6 |