How to stop triggering SC task from Business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 04:26 AM
Hi
I have requirement like to stop triggering the SC task 2 when the first SC task 1 state set to closed skipped How can I get this one from Business rule.
Note: This requirement is for 500 catalog forms so I cannot modify it on individual workflow I want to achieve it from Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 05:08 AM
what do you mean by stop triggering SC Task 2?
why not remove the 2nd task generation from workflow or flow itself?
What's your business requirement here?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 05:16 AM
Hi @Ankur Bawiskar All these forms running on OOB Step based fulfilment flow designer on top of that we are triggering these sc task from Service Fulfillment steps however few having the 2 tasks few have only 1 task (For individual forms they designed like that) So I want to write one Business rule to restrict 2nd sc task to trigger if the 1st sc task state is closed skipped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 09:00 AM
you can use before insert BR and check the total task count for the current RITM
If it's 1 and is for your catalog item then abort the insertion
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 09:02 AM