How to open multiple catalog tasks based on selection of multiple checkbox

JRY
Mega Guru

Hello Team,

I'm trying to open multiple tasks based on multiple selection of checkbox.

Example : I have Request Type : A, B, C this are all check box not drop down, here when i select A then it should create only one Catalog Task if I Select A & B then it should create two catalog task and if I select A, B & C then it should create three catalog task I have tried If condition it didn't work.

I have tried Branch Activity before If Activity it's creating Tasks but when I close all the tasks it's not ending the Workflow. as you can see below 

find_real_file.png

 

Can anyone help me where i went wrong.

 

Thanks,

JRY

1 ACCEPTED SOLUTION

As I previously said, attach the Incomplete to next activity [ Set Values ].

The world works with ServiceNow

View solution in original post

19 REPLIES 19

Hello ,

Also check the below Screenshot;

find_real_file.png

Here, we are applying 3 If Condition.

If 1st is true->Then 1 task will get created.

If 2 nd is true then 2 tasks will get created.

If 3 nd is true then 3 tasks will get created.

 

Regards,

Yash Agrawal.

 

Or else you can complete the requirement in just One "RUN SCRIPT" activity using code in it,

which will create a dynamic record on basis of condition.

Please let me know if you are untreated in the script of the "Run Script" activity.

It will also make you workflow light weight,as in one activity you work will be done.

Regards

Yash Agarwal

 

I have used same method in IF Activity, but i need after All the tasks closed then RITM has to get closed, it's not happening.

 

Thanks,

JRY

Yash Agrawal1
Tera Guru

Hello 

Here is the solution, attach catalog task activity "Complete" to one Set Value activity.

Inset SET Value Activity, give condition as 

the state is Closed complete

find_real_file.png

Please Mark it helpful/correct if my answer helps in any way to resolve your query.
Reach out to me if any more help required.

Regards

Yash.K.Agrawal

Hi Yash,

It's already there on the workflow you can see below image that after tasks get closed it's going to Join activity but after that it's not going to Set X values activity. i'm using Join activity because if more then one tasks get opened then all tasks should get closed before ending the workflow.

 

find_real_file.png