Group approval email how to get the group to show in the email that is approving the request

Joshua Comeau
Kilo Sage

JoshuaComeau_0-1697391523577.png

 

I figured out how to get the assignment group to show that is assigned to the change request but for the approvers for the change request how to get the email above checked to show on the email?

1 ACCEPTED SOLUTION

Joshua Comeau
Kilo Sage

Figured it out

JoshuaComeau_0-1697454708580.png

 

 

View solution in original post

4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@Joshua Comeau If this is about accessing the group name in the mail script then you can do it with the help of the following script.

 

var glideRecord = new GlideRecord('sysapproval_group');
if(glideRecord.get('parent','41cdb152db252200a6a2b31be0b8f527')){ //sys_id of your change
gs.info(glideRecord.getDisplayValue('assignment_group'));
}

Hope this helps.

@Sandeep Rajputthis is about if a notification is triggered which will send an email to the customers, I need to know which field to select to showcase that approval group, do you know what is the field?

 

JoshuaComeau_0-1697397626428.png

 

@Joshua Comeau The fields on the Fields pane depends on the table selected for the notification. For group approvals table name is Group Approval (sysapproval_group) 

 

Screenshot 2023-10-16 at 7.34.19 AM.png

On this table the field name is Assignment Group, this is the group from whom the approval is requested.

Screenshot 2023-10-16 at 7.47.42 AM.png

Joshua Comeau
Kilo Sage

Figured it out

JoshuaComeau_0-1697454708580.png