Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 12:44 PM
Thank you for your reply, I tried the script that you shared but it is not allowing me to save. Oh you are right about the last line, it should .... Also, I cant save the script you shared with me.
function executeRule(current, previous /*null when async*/ ) {
// Check if the affected user (caller_id) is set
if (current.caller_id) {
if (current.caller_id.location) {
if (current.caller_id.location.u_location_support) {
// Set the Assignment Group field to the location's Location Support
current.assignment_to = current.caller_id.location.u_location_support;
// Set the Assigned To field to the location's Assignment Group
current.u_assignment_group = current.caller_id.location.u_assignment_group;
}
}
}
})(current, previous);