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

: Power Automate flow that sends mail AFTER power bi refreshes

Got a simple flow set up:

 

1. Data appears in sharepoint folder

2. Power BI refresh iniated

3. Delay 15 minutes (this is to give PBI time to refresh)

4. Send mail to users

 

Today I received some complaints because the mail went out while the data hadn't been refreshed yet (i.e. people received the mail to soon)

 

Is there a way to replace step 3 by a step that checks for "received confirmation refresh ended successfully"?

1 REPLY 1
Super User III
Super User III

Absolutely.  In Power Automate periodically poll the Power BI API to inquire about the dataset refresh status.

 

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getrefreshhistory  

(or the premium equivalent)

 

The refresh is complete when the first returned entry has an endTime value and a status other than "unknown"

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors