Flow triggered after request is resolved.

Ravi kiran1
Tera Contributor

Hi ,

I have a flow created for service request ,trigger is catalog here if disable is selected no issue ,but when enable is selected first flow will trigger and it will complete but again flow will trigger and sctask will be created. 

Ravikiran1_0-1693895144634.png

 

4 REPLIES 4

Aman Kumar S
Kilo Patron

You IF ELSE logic here, instead of IF IF, that will fix your issue.

 

Also, if you still want to use IF IF logic, put an End flow logic by the end of first if statement ie IF Disabled, so after the disabled logic runs the flow terminates

 

Follow below link to know about End flow logic:

https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/flow-designer/co...

 

Best Regards
Aman Kumar

Thanks for the quick response, but when disable is selected the flow is running only 1 time here problem is when enable is selected  flow will trigger step 11 it will update the request item ,step 12 it will create catalog task and once task is closed step 13 request will be move to close then again flow trigger and run from step 11 and create task 

What are you updating in the Requested item, I see your trigger is service catalog, so it highly unlikely that making any update should retrigger the flow, can you check if request is created multiple times which might be causing it, did you check if same flow restarts or a new flow context is launched?

 

Best Regards
Aman Kumar

same request only new flow is triggered ,last update is state is moved to close