You need to sign in to do that
Don't have an account?
Pawan Kumar 32
how to break loop in flow builder
Hi All,
Can anyone please suggest me how can we use break, continue in flow builder loop like apex. I have screen flow where I am using loop Logic. In this loop, if loop veriable contains 3 records/String values then if my condition is met in first iteration; I just want to stop my loop.
Any help regarding this would be highly appriciated.
Thanks in Advance!
Pawan
Can anyone please suggest me how can we use break, continue in flow builder loop like apex. I have screen flow where I am using loop Logic. In this loop, if loop veriable contains 3 records/String values then if my condition is met in first iteration; I just want to stop my loop.
Any help regarding this would be highly appriciated.
Thanks in Advance!
Pawan
https://success.salesforce.com/ideaView?id=0873A0000003SCpQAM
Possible to Break Out of a Loop in Flow Builder?
https://salesforce.stackexchange.com/questions/289579/possible-to-break-out-of-a-loop-in-flow-builder
1. Get Records
2. Assign the records from the Get Records to a record collection variable of the appropriate record/object type (e.g., "The Accounts")
3. Loop on the record collection variable (assigned in step 2) - do not loop on the Get Records record collection
4. Use a decision element to check for you break condition.
5. When you reach your break condition, assign the record collection variable from step 2 (e.g., "The Accounts") to another record collection variable that is empty (e.g. "No Accounts"). When you create this other record collection it will be an empty collection (by default) and just be mindful to not assign it to a non-empty collection.
When I saw your question, I thought about my reply to a past IdeaExchange idea. I see that Vigneshwaran has copied it word for word without proper credit. In any case, see the IdeaExchagne post Flow - Add "Break" and "Continue" For Loop Keywords to Flow Loops at https://trailblazer.salesforce.com/ideaView?id=0873A0000003SCpQAM. Please upvote the idea.