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.
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.
If you dont use ETL Tool and want to call API from SQL Server (T-SQL) then may be use appraoch documented here.
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.