How add mutiple if condition in catalog task in flow designer in service catalog

Rajveer
Tera Expert

Hello experts,

 

I am coverting workflow into flow designer .Need help how add mutiple if condition in catalog task in flow designer in service catalog .As per following screenshort.

Could  you help me convert following workflow script into flow designer scritpt

 

 

 

 

1 ACCEPTED SOLUTION

Sebastian L
Mega Sage

You need to use the get catalog variables action. Then you can do it in two ways either you create two flow variables for the assignment group and the short description, and then do if else statement based on the variables and you can then set the flow variables and use them when you create the task. 

 

The other was is quite similiar to what you have done in your current work, but you use the script editor when you assign the short_description and assignment_group on your task when you are creating it. You just write fd_data. and then it will show you all available triggers/records you have looked up, you then pick the variables anddo it the same way as before. 


Best regards,
Sebastian Laursen

View solution in original post

3 REPLIES 3

Sagar Pagar
Tera Patron

Hi @Rajveer,

 

Better to go with Switch instead of using IF for multiple conditions.

 

Thanks,

Sagar Pagar

The world works with ServiceNow

lavanya prabak1
Tera Contributor

Hi @Rajveer 

 

In the flow designer set trigger condition as Service catalog.

In the Action Get the catalog variable and using the flow logic action you may create multiple If and else If condition for the particular catalog.

Sebastian L
Mega Sage

You need to use the get catalog variables action. Then you can do it in two ways either you create two flow variables for the assignment group and the short description, and then do if else statement based on the variables and you can then set the flow variables and use them when you create the task. 

 

The other was is quite similiar to what you have done in your current work, but you use the script editor when you assign the short_description and assignment_group on your task when you are creating it. You just write fd_data. and then it will show you all available triggers/records you have looked up, you then pick the variables anddo it the same way as before. 


Best regards,
Sebastian Laursen