Change the assignment group based on the Product Type field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 12:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 12:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 07:45 AM - edited ‎10-20-2022 07:45 AM
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';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 07:51 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 03:16 AM - edited ‎10-20-2022 07:50 AM
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.