Workflow configuration

Shaik22
Tera Expert

Hi,

 

Request type is 'add' have to create 2 sctasks and Request type is 'remove' have to create 1 sctask and Request type is 'modify' no sctasks have to create. The problem here is when i select Request type is modify it also create sctask. How to configure. please help me.

 

Shaik22_0-1724059682637.png

 

1 ACCEPTED SOLUTION

Hemanth M1
Giga Sage
Giga Sage

Hi @Shaik22 ,

 

Use switch core activity, select field or variable (i.e Request Type),

 

HemanthM1_0-1724064359893.png

Ex:

HemanthM1_1-1724064410297.png

 

 

Hope this helps!!!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

View solution in original post

3 REPLIES 3

Hemanth M1
Giga Sage
Giga Sage

Hi @Shaik22 ,

 

Use switch core activity, select field or variable (i.e Request Type),

 

HemanthM1_0-1724064359893.png

Ex:

HemanthM1_1-1724064410297.png

 

 

Hope this helps!!!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

It is not possible by IF condition?

Hi @Shaik22 ,

 

Using If you can return two values either New/Modify or New/Remove or Modify/New or Modify/Remove

if any of two request is same you can use if since you need to create 

New - 2 Task

Modify - No Task

Remove - 1 Task 

Better to use Switch (its very easy to configure)

 

or You really wanna use only if use two if activity 

1)if(Modify or Not) -> If output is Modify no task go the next step or end the workflow, if output is Not

2)Check if New or Remove and have the existing logic.

 

 

Hope this helps!!!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025