
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 06:30 AM
Hi,
I'm trying to have a record producer create an incident for one of two assignment groups based on the selection from a multiple-choice variable called phone_line_type. Here is the code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 06:57 AM
@Jason H1 Please try with the below code
var phoneLineType = producer.phone_line_type
if (phoneLineType == 'teams_call_line'); {
current.assignment_group = '548cd3b48728a910c062fc48dabb35a1'; //sysid of assignment group
}
else if(phoneLineType == 'teams_call_line');{
current.assignment_group = '788cd3b48728a910c062fc48dabb35a1'; //sysid of assignment group
}
@
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 06:57 AM
@Jason H1 Please try with the below code
var phoneLineType = producer.phone_line_type
if (phoneLineType == 'teams_call_line'); {
current.assignment_group = '548cd3b48728a910c062fc48dabb35a1'; //sysid of assignment group
}
else if(phoneLineType == 'teams_call_line');{
current.assignment_group = '788cd3b48728a910c062fc48dabb35a1'; //sysid of assignment group
}
@
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 06:58 AM
@Jason H1 let me know in which table you have created record producer ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 11:16 AM
Hi @Kishor O it's then incident table and its working now thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 07:17 AM
Yes that worked thanks