- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Hi All,
Today I would cover what is "Exit Loop flow logic" in ServiceNow.
This is recently launched in Washington DC Release.
Features:
It exists from a flow logic loop when the conditions of an If flow logic are met. It allows our flow to continue running from the next step after the flow logic loop. This flow logic is also known as "break".
- Then branch of an If flow logic block
- Then branch of an Else If flow logic block
- Then branch of an Else flow logic block
Execution Details
When our flow exits a loop, the state of the exit logic becomes Completed.
Example 1: Exit a loop based on incident count
In this example, it is shown how a flow generates a list of incidents assigned to a user. For each incident that is assigned to the user, the flow sends an email. If the list of incidents is greater than or equal to 5, then the flow exits the For Each flow logic loop and doesn’t send an email.
In a similar way you can use this flow logic for any such scenario wherein you want to exit the loop at some condition.
For more information on Exit Loop, Do checkout the ServiceNow docs below:
This content is also picked up from ServiceNow Docs.
Hope this helps you. Do mark this article helpful if it helped you in any way.
Regards,
Shamma Negi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
