How to populate the assignment group based on location populated in shipping address

vinuth v
Tera Expert

Hi All,

 

How to populate the assignment group based on location populated in shipping address type as Multiline text.

For example, If Shipping Address field contains the BANGALORE, then catalog task will assign to WORKPLACE-BANGALORE, If Shipping Address field contains the LONDON, then catalog task will assign to WORKPLACE-LONDON, like this I need to populate 10 assignment groups on the task level using Flow designer.

 

Please anyone suggest me How to do this one. 

 

Thanks,

Vinuth

 

1 ACCEPTED SOLUTION

vinuth v
Tera Expert
I tried this below script and it is working fine.
var country = fd_data._1__get_catalog_variables.country;
var grp;
if(country=='name of the country'){
grp = 'sys_id of the group';
}
else if(country=='name of the country'){
grp = 'sys_id of the group';
}
return grp;

View solution in original post

2 REPLIES 2

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
You can create a flow variable say "asgroup"and within that you can write your logic (using if/else/else if).
After this you can assign this variable to assignment group field using "Update record" action.


Thanks and Regards,

Saurabh Gupta

vinuth v
Tera Expert
I tried this below script and it is working fine.
var country = fd_data._1__get_catalog_variables.country;
var grp;
if(country=='name of the country'){
grp = 'sys_id of the group';
}
else if(country=='name of the country'){
grp = 'sys_id of the group';
}
return grp;