Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have created a custom visual which data source is an Azure SQL.
The custom visual includes a HTML form and users can post data to the SQL database via the webapp.
It works fine.
Then, I want to refresh the custom visual as soon as user's action.
Is there a way to refresh the custom visual programmatically ?
Ok, I know the referesh button are on the screen above, but I want to do it programmatically.
Solved! Go to Solution.
Create an onload event to call the data refresh API? this is just a thought. https://powerbi.microsoft.com/sv-se/blog/announcing-data-refresh-apis-in-the-power-bi-service/
As other user mentioned Power BI offer REST API to trigger manual refresh. If you use ETL tool like SSIS you can call API using this approach.
https://zappysys.com/blog/refresh-power-bi-dataset-via-rest-api-using-ssis/
If you dont use ETL Tool and want to call API from SQL Server (T-SQL) then may be use appraoch documented here.
https://zappysys.com/blog/import-rest-api-json-sql-server/
Keep in mind there is a limit on how many times you can cll Refresh API in one day. So dont call it too many times unless needed.
Create an onload event to call the data refresh API? this is just a thought. https://powerbi.microsoft.com/sv-se/blog/announcing-data-refresh-apis-in-the-power-bi-service/
Thank you sananthv !!
I will try implement it. 😄
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |