We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Flow Designer parallel tasks closed skipped if specific question is answered no

Darlene York
Tera Contributor

Good morning,

 

I have a flow that I have 6 tasks that are worked in parallel.  There is a select question on each task that has 3 options, Yes, yes with comments and no with comments.

 

the field names are

approved_by_ops

approved_by_it_infrastructure

approved_by_asset_management

approved_risk_mgmt

approved_by_grc

approved_by_is_security

 

If any one of the above questions answer no with comments.  I need the remaining open tasks to automatically close skipped.

 

I cant come up with a good solution to make this happen.  Any thoughts would be greatly appreciated.

 
 
 

 

 

 

1 REPLY 1

Sujit Jadhav
Tera Guru

Hello @Darlene York ,

 

You can use Trigger

Table: sc_task
Conditions: Any of the six variables is No with comments

Than in the actions you can use the Lookup Get Records on sc_task with:
request_item = Trigger.current.request_item
sys_id != Trigger.current.sys_id
state NOT IN Closed Complete, Closed Incomplete, Closed Skipped

For Each result:

Update Record: set state = Closed Skipped, set close_notes with a reason.

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

Thank You,

Sujit Jadhav