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,
I am trying to automate the publishing of a pbix file held locally on my desktop to the online PBI service, through a C# script. Within the organisation, other people are then accessing the report direct from the online PBI service.
Looking into it, I see this can be achieved via the power bi api. However, when looking at the Power BI rest api documents it is saying that I need to register an application in order to get the client id. Is this the case even if I just want to automate the refresh & publish to the service?
Thank you in advance for your help!
Solved! Go to Solution.
Hi @Anonymous ,
Yes you are correct in order to call the PowerBI REST API you need the proper Autentication (OAuth=>Bearer token ) using the client id is the way to call any REST API including refresh & Publish to the service.
Refer this Code sample which will helps you to achieve your Automation through C#.
See my article PowerBI - CICD using Azure DevOps
Hi @Anonymous ,
Yes you are correct in order to call the PowerBI REST API you need the proper Autentication (OAuth=>Bearer token ) using the client id is the way to call any REST API including refresh & Publish to the service.
Refer this Code sample which will helps you to achieve your Automation through C#.
See my article PowerBI - CICD using Azure DevOps
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 |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |