Creating If Statements in a Flow Designer variable

Peter Williams
Kilo Sage

i have created this flow that will assign the request to the request_for location service desk.

 

PeterWilliams_0-1664822752439.png

if the requestor is from Toronto then it will assign it to the AV TOR group if from MOntreal then AV MTL group and so on.

the issue i am facing, if the user is from Montreal or Toronto it will only get assigned to the first one AV - TOR. 

it doesnt confirm the second Else if

1 ACCEPTED SOLUTION

in your record, select trigger only till Requested item, else i dont see any issues, apart from user you are checking may not have the location set.

Thanks

Harshad

View solution in original post

11 REPLIES 11

Harshad Wagh
Tera Guru

Hello @Peter Williams 

 

You are doing assignment rather than comparison.

your if should be if (varCity == "your_sys_id") // repeat same for else if condition,

 

Hope this helps!!!

 

BR,

Harshad 

hi Harshad,

 

i did that and now no assignment group is getting added

PeterWilliams_0-1664824417939.png

 

Can you please add a gs.log(varCity) and see what value you are getting?

 

Thanks

Harshad

sorry i am new with scripting in flow

i added it but its not returning anything

 

PeterWilliams_0-1664825413554.png