How to get catalog item variable value in workflow

Supriya KM
Tera Contributor

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?

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

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';
}

View solution in original post

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

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';
}

Hi Jaspal,

Thanks for the quick response. It worked.