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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to wait for a Powe...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 118
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
Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    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
    53,963 Moderator on at
     
    Any feedback on this?
  • Stuart74 Profile Picture
    118 on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard