How to autopopulate manager name in assigned to from group table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:16 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:38 AM
What error it is giving?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 11:43 AM
Assigned to should be member of assignment group and it's OOB only.