- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 04:57 PM
Hello,
How to populate the Assignment Group field on a record created by a Record Producer...
I am wanting the Assignment Group field to be populated based on the Case Type selected on the Record Producer. Am I looking at a script include with a Glide AJAX call in a client script? A Onload BR? A script in the Record Producer?
Any guidance is appreciated...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 06:36 PM
@Richard Castill you can use record producer script example shared below. If you find my response helpful please Mark Helpful to close the thread..
If (producer.varibale == 'ab')
current.assignment_group= 'xyz';
else
current.assignment_group= 'bde';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 06:36 PM
@Richard Castill you can use record producer script example shared below. If you find my response helpful please Mark Helpful to close the thread..
If (producer.varibale == 'ab')
current.assignment_group= 'xyz';
else
current.assignment_group= 'bde';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 07:09 PM
I see now that the very Record Producer says:
Configure a script to accomplish tasks such as:
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2023 07:01 PM
Hi @Richard Castill,
You can use the record producer scripts to auto-populate the assignment group based on your conditions.
Here is sample script -
if(producer.case_type == "type1"){
producer.assignment_group = "group1_sys_id";
} else if(producer.case_type == "type2"){
producer.assignment_group = "group2_sys_id";
} else if(producer.case_type == "type2"){
producer.assignment_group = "group2_sys_id";
} else {
producer.assignment_group = "group3_sys_id"; // default group sys_id
}
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 08:12 PM
Thank you for your reply Sagar,
I tried :
producer.assignment_group = "group1_sys_id";
The code did not set the Assignment Group field. I changed "producer." to "current." and it set the Assignment Group field based on the Case Type field selection.
current.assignment_group = "group2_sys_id";