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

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. 

niveditakumari_0-1747214460940.png 

 

It is taking requested item record. 

How to get sctask state. 

 

Regards, 

Nivedita 

 

 

 

@niveditakumari 

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

flow if logic.gif

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

 

niveditakumari_0-1747220083510.png

 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 

 

 

@niveditakumari 

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.

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

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