Hello, I am trying to stop a flow triggering an infinite loop. I have tried to follow the suggestions elsewhere on this forum, but it isn't working. I have a date field called 'Flowmodified' which is a date field, and is updated with utcNow() whenever the flow is run. I have tried to add the following trigger condition to stop infinite loops, but it isn't working, and the flow gives an error:
@greater(value(triggerBody()?['Modified']), value(addMinutes(triggerBody()?['Flowmodified'], 2)))
What is doing your flow? Could you share a screenshot? Why it is generating an infinite loop? Probably it will be better to change it in order to avoid it.
Hi @rshama ,
I agree with @fchopo a screenshot will help.
In my case I created a column Process: Column type – Yes/No (Default value ‘Yes‘) – Note: This will be used to prevent recursive Flows.
In the condition I check,
>>“To Process” (Output of “When an item is created or modified” trigger) is equal to “True”.
If True. do the "What your want your Flow to do" and at end of the process just update the "To Process" column to "false"
You can find more details, https://clavinfernandes.wordpress.com/2019/04/11/extract-text-from-scanned-content-using-ocr-and-man...
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
So many events happening this month - don't miss out!
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.