Wait for adhoc catalog task to close before closing RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 10:01 PM - edited 03-18-2025 04:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 09:41 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 02:49 PM
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