The CreatorCon Call for Content is officially open! Get started here.

How to end a flow manually in flow designer ?

Ahmmed Ali
Mega Sage
Mega Sage

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  

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali
1 ACCEPTED SOLUTION

Ahmmed Ali
Mega Sage
Mega Sage

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

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

5 REPLIES 5

asifnoor
Kilo Patron

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.