- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 01:44 AM
Hi,
I have catalog item and it is creating 4 catalog task. When sctask state is closed incomplete or skipped it is not closing flow for that it is creating another catalog task. Do I need to create business rule for that or I need to do change in flow. What changes need to be done.
Which approach would be best.
Can you please confirm for that.
Regards,
Nivedita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 05:09 AM
correct, when you use Lookup Record use the sysId of the previous recently created task to know the State
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
05-14-2025 02:23 AM
Hi @Ankur Bawiskar,
Right, I'm doing that only when I'm adding if I'm not able to get sctask state to check that is closed incomplete.
It is taking requested item record.
How to get sctask state.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 02:36 AM
you can use Lookup Record on sc_task table with condition as Sys id=sysId from previous step
Then use IF logic to know the state
something like this
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
05-14-2025 03:58 AM
Hi @Ankur Bawiskar,
I have added above if else if and I have created 2 task and need to create 4 catalog task.
Can you please help me how to proceed further.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 04:18 AM
Glad to help.
do the same as per your requirement for the remaining tasks
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
05-14-2025 04:25 AM
Hi @Ankur Bawiskar,
It is not completed. I'm not able to understand how to proceed.
Can you please confirm how to add all 4 task with checking that condition.
Regards,
Nivedita