Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Based on location I am creating sctask ans assign to different different groups in flow designer

Not applicable

in catalog having location filed  based on the value in location it will Crete sctask and assign to different different types of groups  so written code in assignment group filde. Can one provide solution 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron

@Community Alums What type of field is location? Is it a reference to cmn_location? or it is a text field?

 

If location is a reference then you should compare the string with the name field.

if(fd_data.trigger.request_item.variables.location.name=='Hyderabad')

 

Hope this helps.

 

 

View solution in original post

5 REPLIES 5

Not applicable

If location value is get form sunflow means then also same way or any approach is there.