cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ziyi Frequent Visitor
Frequent Visitor

Is there an API for refresh data immediately ?

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.

Selection_317.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
sananthv
Advisor

Re: Is there an API for refresh data immediately ?

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/

View solution in original post

3 REPLIES 3
sananthv
Advisor

Re: Is there an API for refresh data immediately ?

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/

View solution in original post

ziyi Frequent Visitor
Frequent Visitor

Re: Is there an API for refresh data immediately ?

Thank you sananthv !!

I will try implement it. Smiley Very Happy

 

 

 

ZappySys Regular Visitor
Regular Visitor

Re: Is there an API for refresh data immediately ?

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.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 46 members 1,032 guests
Please welcome our newest community members: