How to populate Assigned To field on form load of the Escalation form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 10:34 AM
Hi All,
I have a requirement where I need to populate Assigned To field of the Escalation form when it is created from "Escalate Case" UI Action from Case form. Suppose a case is assigned to Assignment Group "XYZ" and assigned to "ABC" person, when an Escalation is created from that case using "Escalate Case" UI Action, the escalation should assign to manager of the "XYZ" group on escalation form load. How do I achieve this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2024 02:07 PM - edited 01-19-2024 02:39 PM
You can modify the script in the UI action.
1. Fetch the Group Manger. You can dot walk to the field using the
var manager = current.assignment_group.manager(will give sys_id)
2. Add a new setValue for the new record getting created.
gr.setValue('assignment_to' , manager);
Above should work, but please play around with it.
Although I do not see the assignment group and the assigned to fields on the form for the escalations.
Please accept solution OR mark helpful.