cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Trigger Conditions - Flow is running in a continuous loop

Hello, I'm hoping someone can help me before i go crazy. 

 

I have a flow which provisions a site and adds/removes members accordingly. 

 

The problem i am having is with the trigger conditions on the When item is created or modified. As it stands i need the flow to kick of when the site provisioning status is equal to not started and if  the provisioning status is Active and the last time it was modified was more than 15 seconds ago. However is just runs in a continuous loop. 

 

 

@or(equals(triggerBody()?['Status']?['Value'],'Not Started'), and(greater(string(triggerBody()?['Modified']),addSeconds(utcnow(),-15),equals(triggerBody()?['Status']?['Value'],'Active'))))

 

 

I've tried changing the greater to less, tried amending the addseconds function with no real luck.  

 

Help!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Trigger Conditions - Flow is running in a continuous loop

Hi @LJSun 

 

What's the status of the record you getting continuous loop? Make sure there are no constant updates to any other fields which triggers the modified on field updates.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Trigger Conditions - Flow is running in a continuous loop

Hi @LJSun 

 

What's the status of the record you getting continuous loop? Make sure there are no constant updates to any other fields which triggers the modified on field updates.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (9,675)