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.
Hello everyone,
I am attempting to connect QuickBooks Online to Power BI using the API with OAuth2 authentication. I have tried several methods to get the data, including:
Out of these methods, the Python script has been the most successful. However, I'm facing an issue where I need to manually change the access token every time I want to refresh the data.
I've created a function to fetch a new access token, but when I replace the static access token with this function in my data script, it doesn't work. I have also tried implementing this solution in the Web connector, but without any success.
Has anyone encountered a similar issue or could provide guidance on how to automate the access token refresh process within Power BI? Any help or suggestions would be greatly appreciated.
Thank you!
@amitchandak it would be a great help if you could suggest something.
Solved! Go to Solution.
HI @novelmayank,
I'd like to suggest you use web connector to getting data from REST API. You can add a step to getting access token at first, then you can use this token in following steps. (this get token operation will be invoked every time the data source refresh to prevent the expired issue in other steps)
Solved: Pull data from a REST API Authentication - Microsoft Fabric Community
Regards,
Xiaoxin Sheng
HI @novelmayank,
I'd like to suggest you use web connector to getting data from REST API. You can add a step to getting access token at first, then you can use this token in following steps. (this get token operation will be invoked every time the data source refresh to prevent the expired issue in other steps)
Solved: Pull data from a REST API Authentication - Microsoft Fabric Community
Regards,
Xiaoxin Sheng
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |