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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
smpa01
Super User
Super User

Fire a query upon dataset refresh in PA

@mahoneypat  Is it possible at all to fire an automated cloud flow in PA upon successful dataset refresh?

I don't see any trigger at all. It is possible to fire a query, just don't see the trigger at all.

 

Am I missing something, doing something wrong? Is there a way out? 

I need to know how to trigger a query upon dataset refresh, required for archiving and subsequent comp.

 

smpa01_0-1662742256622.png

 

Thank you in advance.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

There isn't an OOB trigger for that, but here are 3 approaches to consider:

 

1. Trigger your refresh with Power Automate (based on a schedule or some other trigger), wait the time needed to refresh, and then do your other actions.

2. Create a simple dashboard from your dataset with a simple Alert that is always true (e.g., # rows >0), and then use that Alert to trigger your flow.

3. Use the refresh history Power BI REST API and run it at the needed frequency, parse the response to detect if the refresh is complete for that dataset with a condition, and then add your actions on the true.

 

#2 is probably the simplest/best approach

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Employee
Employee

There isn't an OOB trigger for that, but here are 3 approaches to consider:

 

1. Trigger your refresh with Power Automate (based on a schedule or some other trigger), wait the time needed to refresh, and then do your other actions.

2. Create a simple dashboard from your dataset with a simple Alert that is always true (e.g., # rows >0), and then use that Alert to trigger your flow.

3. Use the refresh history Power BI REST API and run it at the needed frequency, parse the response to detect if the refresh is complete for that dataset with a condition, and then add your actions on the true.

 

#2 is probably the simplest/best approach

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


I would call #2 a hack (but a nice one).  Personally I use #3.

lbendlin
Super User
Super User

Needs more details. Are you initiating an enhanced refresh request or a standard request?  

 

Chris Webb's BI Blog: Calling The Power BI Enhanced Refresh API From Power Automate, Part 4: Getting...

 

For a standard request you need to do similar polling but instead of using a requestid you need to poll the history (ideally with $top=1) .

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.