I have catalog item and I'm creating catalog task.

niveditakumari
Mega Sage

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. 

niveditakumari_0-1747212235589.png

 

 

Regards, 

Nivedita 

 

 

1 ACCEPTED SOLUTION

@niveditakumari 

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.

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

View solution in original post

13 REPLIES 13

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @niveditakumari 

 

could you please check OOTB flow, i think you need to set the stages only in this case.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@niveditakumari 

is the flow not getting completed?

at which step it's stuck?

share the flow execution context for any 1 RITM

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

Hi @Ankur Bawiskar

 

Please find attached screenshot : 

niveditakumari_0-1747213291705.png

 

We have done first sctask closed incomplete but is creating another task. 

 

Regards, 

Nivedita 

 

 

@niveditakumari 

for system whether you mark close complete or close incomplete it considers task is closed and hence proceeds

You can check using IF flow logic if the previous catalog task was closed complete, if yes then only create the next catalog task

You can add this IF flow logic after every catalog task activity if you want.

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