cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
imran7799
Level: Powered On

Prevent re-triggering of the flow while updating item in same list

Hi,

 

I am updating an item in the same list where the flow is configured to run on create or update. The issue is that the update by the flow re-triggers another unwanted flow execution. 

 

for now I have setup a temparory condition to check the Modified By value, and if it is the account that I am using to run the flow then I am terminating it. This workaround is working for now but I just wanted to check if there is any better solution out there for this issue.

 

Thanks.

4 REPLIES 4
v-zhos-msft
Level 10

Re: Prevent re-triggering of the flow while updating item in same list

Hi @imran7799 ,

As you discription, there are two flows(flow1 and flow2).The flow1 contains a update item action, which will trigger the flow2.

Solution 1:

I suggest you add a column in the list(like: Yes/NO column).

In the flow1, the update action always set the column value to 'Yes'.

In the flow2, below the trigger, you can add a conition, when the column value is equal to No, the flow will continue.

Solution 2:

Turn off the flow2, when the flow1 is running.

Solution 3:

Add a Manually trigger above the flow2.

 

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

DavidG
Level: Powered On

Re: Prevent re-triggering of the flow while updating item in same list

I have used a similar workaround to the one suggested here.

 

Personally I think this issue should be addressed in the trigger action, perhaps a setting that allows you the check "Prevent Flow account from triggering this Flow" would be useful. 

 

I'm not sure if this is related, but I have recently found that my Flow is triggering several times a day (one time over 30 times) when nobody was editing any files. It's almost like the Flow is randomly triggering itself, even when no other Flows are running.

v-zhos-msft
Level 10

Re: Prevent re-triggering of the flow while updating item in same list

Hi @DavidG ,

I am afraid there is no action about the check "Prevent Flow account from triggering this Flow".

If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

For the another question, sometimes , the flow will re-triggering itselt, it depend on the flow's configuration.

Here is a similar case you can take a reference:

https://powerusers.microsoft.com/t5/Building-Flows/Stop-a-flow-re-triggering-itself-on-sharepoint-it...

 

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

imran7799
Level: Powered On

Re: Prevent re-triggering of the flow while updating item in same list

Hi @v-zhos-msft 

 

Thanks for the reply. However, I only have one flow not two.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,567)