Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
SarahT
Frequent Visitor

How to refresh datasouce on demand via API

Hello community

Sorry for my english 😞

The use case is :

My key user must refresh datas at any moment. 

I want him to be independant to launch this execution.

I'd like to use API refreshes, but i don't how to do to chain the step.

For example : 

Step 1 - Generate token

Step 2 - Refresh datasource

Step 3 - Refresh dataflow

Step 4 - Refresh dataset

 

How i can make sure that the first step is done before the second step go.

Has anyome has implemented this case 

 

Thanks

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Step 2 is outside of the scope of Power BI.  Steps 3 and 4 can be done with Power Automate, but you must keep in mind that these refresh requests are asynchronous. You would need to implement your own polling, especially to monitor step 4.

 

While we have implemented just such a use case, the user experience is horrible. Users expect to see immediate results when they hit the button.  NONE of these steps give immediate results.  It's one big guessing game of if and when it completes.

View solution in original post

2 REPLIES 2
SarahT
Frequent Visitor

Thanks @lbendlin 

It's a good argument 🙂 and i'm aware that the result is not immediat. 

I'll explore Power automate 🙂

 

lbendlin
Super User
Super User

Step 2 is outside of the scope of Power BI.  Steps 3 and 4 can be done with Power Automate, but you must keep in mind that these refresh requests are asynchronous. You would need to implement your own polling, especially to monitor step 4.

 

While we have implemented just such a use case, the user experience is horrible. Users expect to see immediate results when they hit the button.  NONE of these steps give immediate results.  It's one big guessing game of if and when it completes.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.