Change the assignment group based on the Product Type field.

vinuth v
Tera Expert

Hi All,

On the form level I have one of the field called "Product type" and this is a select box field contains

1.Tracker

2.EBH

3.3E

Based on the Product type field I need to change the assignment groups.

If I select the "Tracker" then I need to assign to "Tracker-IDE" Assignment group

If I select the "EBH" then I need to assign to "Ops-Elite" Assignment group

If I select the "3E" then I need to assign to "Service-IDE" Assignment group.

 

I need to achieve this using workflow,

Please any one provide me the input.

Thanks,

Vinuth

 

 

6 REPLIES 6

Community Alums
Not applicable

Hi @Community Alums ,

I tried with the below code, but it is not working.

 

 var pro=current.variables.product_type;

if(pro==tracker){
task.assignment_group='Tracker-IDE';

 }
 else if(pro==ebh){
 task.assignment_group='Ops-Elite';
}
else if(pro==3e){
task.assignment_group='SERVICE-IDE';
}

if(pro == 'Tracker'){
task.assignment_group = 'Tracker-IDE group sys_id';

 }
 else if(pro=='EBH'){
 task.assignment_group='Ops-Elite group sys_id';
}
else if(pro=='3E'){
task.assignment_group='SERVICE-IDE group sys_id';
}

 

Mark Helpful/Correct if it helps.

GodOfWar
Mega Guru

Use the OOTB Assignment Rule to set the Group per Product condition.

 

if(pro == 'Tracker'){
task.assignment_group = 'Tracker-IDE group sys_id';

 }
 else if(pro=='EBH'){
 task.assignment_group='Ops-Elite group sys_id';
}
else if(pro=='3E'){
task.assignment_group='SERVICE-IDE group sys_id';
}

 

Mark Helpful/Correct if it helps.