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

Gillerla Rajesh
Tera Contributor

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
Tera Patron

@Gillerla Rajesh 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

Jaspal Singh
Mega Patron
Mega Patron

Hi,

There are typos for variables. Please use variables and not varaibles.

Also, instead of passing location name you can pass sys_id of location and check.

Sandeep Rajput
Tera Patron
Tera Patron

@Gillerla Rajesh 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.

 

 

Yes reference to cmn_location

Then either compare the name or compare the sys_ids of location to find the match.