web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

How to wait for a Power BI refresh to succeed or fail.

(0) ShareShare
ReportReport
Posted on by 116
Hello
 
I am hoping someone can help.   I have created a flow as shown;
 
 
This flow works.  I would like to add a step before the email where I check if the dataset refresh has finished.  It will then email the result, successful, or fail.
 
Do anyone have any thoughts?
 
Thank you
 
Stuart
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    50,275 Super User 2025 Season 2 on at
    How to wait for a Power BI refresh to succeed or fail.
     
    So, there is no way to make that action Synchronous, which means you would have to do something like
     
    1) in power bi, log any refresh events somewhere like SharePoint, then you would have a flow that triggers when the Refresh completes (whether successful or not) and then you would send your notification
     
    2) Track using power BI Alerts that can be sent out, preferably some DAX so that when its complete it can do the notification
     
    Also remember that if you tell it to do a refresh, but one is already going, this refresh will NOT trigger anything so you may not get anything back ever and be confused, that of course plus refresh limits in a day (depending on your license).
     
    3) You can create a Do Until that then leverages the HTTP Action to check the power Bi Rest API Endpoints, checking the Refresh History / Refresh Execution Details to see if it worked or not and then do your notification. although this would potentially make this long running (depending on your refresh or state of), plus if it didn't actually trigger it because one is already running, you'd have to tak that into account so you do not try to Do until forrever (ok it would not be forever, as you would have a time out).
     
    Those are the only ways I can really think of based on your ask, since it won't block :-( I am afraid.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • Michael E. Gernaey Profile Picture
    50,275 Super User 2025 Season 2 on at
    How to wait for a Power BI refresh to succeed or fail.
     
    Any feedback on this?
  • Stuart74 Profile Picture
    116 on at
    How to wait for a Power BI refresh to succeed or fail.
    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 699 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 542 Moderator

#3
chiaraalina Profile Picture

chiaraalina 321

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow