- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 04:22 AM
Hi,
I have a catalog item where there is a selectbox 'Region' with choices - US, UK, DU, NA
I have to get this value in the workflow for the catalog item in the catalog task.
For example - if choice selected is by user is 'US' then the assignment group should be the US based group. (four groups are there for four regions)
Can anyone help me in achieving either in catalog task or using run script or how to get this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 04:25 AM
Hi Supriya,
Assuming you are using Catalog Task activity in workflow try below
if(current.variables.region=='UK'){ //replace region with correct variable name
task.assignment_group='ABC';
}
else if(current.variables.region=='US'){ //replace region with correct variable name
task.assignment_group='XYZ';
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 04:25 AM
Hi Supriya,
Assuming you are using Catalog Task activity in workflow try below
if(current.variables.region=='UK'){ //replace region with correct variable name
task.assignment_group='ABC';
}
else if(current.variables.region=='US'){ //replace region with correct variable name
task.assignment_group='XYZ';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 04:37 AM
Hi Jaspal,
Thanks for the quick response. It worked.