
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2018 06:35 AM
Hello Experts,
I was exploring flow designer. I want to utilize this for one of our catalog item automation. I know I can do it with workflow. But It has some integration. so I want to create new actions and utilize same in other requests also.
I have a below queries. Any help on solution would be appreciated.
1. How we can end a flow manually with some condition. For example I have 10 actions in a flow. I have a rest message action at no.5. If any error in that rest message then I want to have some log and end the flow Skipping 6-10.
2. How we can Exit a particular for-each based on some condition. For example I have a user list collector field on trigger record. I want to process only active records and if any in-active record came, I just want to end the for-each loop skipping other records in the list and continue with the next actions after for-each.
Thank you.
Ali
Thank you,
Ali
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 10:36 PM
Hello All,
There is new feature in Madrid release, which allows to end the execution in flow designer.
https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/administer/flow-designer/concept/flow-logic-end-action.html
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 10:47 PM
Hello Ahmed,
Here is how you can do.
After Action 5, add flow logic and in that check for the response of the API. Based on that, if its true, you can add an action which will log the data and if false, then continue with your remaining actions.
Kindly mark the answer as helpful if this helps.