Close the Requested Item record when all the associated Catalog Tasks are closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2024 01:41 AM
Requirement: Requested Item should be closed when all the respective catalog tasks are closed.
1. Create a Business rule on Catalog task (sc_task) table
2. Condition: Catalog task is closed complete
3. Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2024 04:39 AM
Hi @Juhi Poddar ,
The script I have written is almost same as your's just if condition is different. Anyway thanks for the reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2024 01:57 AM
Anyway flow doesn't moves until the catalog task is closed, so create one sub-flow for closure and add it after joining all catalog tasks to this particular sub-flow. No scripting is required to fulfill this one.
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************