How to autopopulate manager name in assigned to from group table

Priyanka77
Tera Guru

Hi,

How to autopopulate assigned to field as group manager in Incident table On change of assignment group. I have tried it by using on change client script but its not saving the record because that manager is not group member of selected group. 

Can someone please help me to verify group member validation as well for above requirement.

Thanks,
Priyanka

5 REPLIES 5

Alka_Chaudhary
Mega Sage
Mega Sage

Hello @Priyanka77 ,

 

You can create on change client script for assignment group field and use the below code to populate assignment group manager in the assigned to field.

g_form.setValue("assigned_to", g_form.getReference("assignment_group").manager);

 

If this response clears up your doubt, kindly flag it as both helpful and correct.

Thanks,

Alka

Thanks for your response @Alka_Chaudhary. But its not saving the record if manager is not member of selected group. I also tried similar script. Assigned to should get only that manager if he/she is also member of that group 

What error it is giving?

Assigned to should be member of assignment group and it's OOB only.