Wait for adhoc catalog task to close before closing RITM

Anand2799
Tera Contributor

Hi All,

 

I have a requirement where a fulfiller can create adhoc task on RITM record if required. For this I have created an ACL on sc_task table to provide create access to ITIL users.

 

Now, I want to check if there is any adhoc task has been created, if no adhoc task is present then close the RITM, if adhoc task has been created I want a flow to wait for adhoc task closure and if all task closed then close the RITM.

 

Any suggestion on how to achieve this functionality. I want this as a standalone solution so that, we don't have to call subflow on every catalog item flow.

 

Thanks in Advance

Anand

 

@Ankur Bawiskar , @Community Alums , @Mark Roethof , @Dr Atul G- LNG , @Sandeep Rajput 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@ Anand2799 

you can't make your flow wait for indefinite period?

Do you have some condition that adhoc task needs to be created within x number of days from RITM creation?

If yes then you can use wait for duration logic based on that

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

tyagi_amrit2701
Tera Contributor

Hi @ Anand2799 

You can achieve this by using look up records action in flow designer select  sc_task table in table field. Under condition field you can dot walk on your requested item in conditions field additionally you can select the state as well after you find the records use for each to check all the active tasks then add wait for condition when active is false. 

If it helped please mark it correct 

Regards 

Amrit