How to populate Assigned To field on form load of the Escalation form?

Sid_Takali
Kilo Patron
Kilo Patron

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? 

SiddharamTakali_0-1705689486603.png

 

 

Thanks

1 REPLY 1

ahefaz1
Mega Sage

@Sid_Takali ,

 

You can modify the script in the UI action.

 

ahefaz1_0-1705701874604.png

 

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.