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

Check if flow is running from another flow

Hello!

 

I do need an advice on the matter is it is possible to check if another flow is running at the moment.
Basically I have a flow which I use for powerapps to delay the refresh of the data - it waits for some time while another flow is doing all the work inserting data (I don't have it in one flow because there is no way to put these actions together an not pay extra $$$ for it), so I need a flow which ideally would look like this:


- trigger from PowerApps

- waits 15 sec
- checks if another flow is running

- if yes: wait more, if no: go 

- answer to PowerApps

 

Is it even possible to do so?

 

Thanks!

3 REPLIES 3
JohnAageAnderse
Memorable Member
Memorable Member

Hello @bonifacious 

This sounds like you need to have a flag that indicates that the other flow is running. One way to do this would be to use a list for the flag.

The first flow when it runs, creates a unique flag item in the list, then invokes the other flow passing on the flag item id.

The second flow then updates the flag item with status completed when the flow finishes.

The first flow in the meantime has been polling the flag item, waiting for the status to become completed.

When the flag item status is completed, the first flow continues.

Would something like that work for you? 🙂

Kind regards, John

What do you mean by "polling the flag item"?  How would I do something like that?

russoedu
Advocate I
Advocate I

You can set the PowerApps parallelism to 1, so this flow will only run when no other instance of this flow is running, maybe this should work for what you need.

 

russoedu_1-1644481844177.png

russoedu_2-1644481883795.png

russoedu_0-1644481806076.png

 

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,642)