- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 09:43 PM
I want to give signature at the footer as pe assignment group f
For example: If assignment group is abc then signature of abc assignment group should be there
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2022 12:26 AM
You need to create signatures in notification email scripts for each assignment group. you can take below reference.
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
var group1_name = "Grpup1_name";
var group1_sys_id = "group1_sys_id";
var group1_description = "Group1 description";
var group2_name = group2_name;
var group2_sys_id = "group2_sys_id";
var group2_description = "Group2 description";
if (group1_sys_id == current.assignment_group) { // add Group1 - email signature
template.print("Thanks and Regards," + "<br />" +
group1_name + "<br />" +
group1_description + "<br />");
} else if (group2_sys_id == current.assignment_group) { // add Group1 - email signature
template.print("Best Regards," + "<br />" +
group2_name + "<br />" +
group2_description + "<br />");
}
})(current, template, email, email_action, event);
Thanks!
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 11:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 11:27 PM
but for every assignment there is different signature how i will i achieve that ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-20-2022 11:39 PM
You can refer
template.print(logged_user.getValue("name")+'\n'); // this will print the logged in users name dynamically
template.print(current.assignment_group.getDisplayValue()+'\n'); //this will print the assignment group dynamically.
You can also modify above script according to your requirement.
If you need more information on the email templates then please check below video.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2022 12:00 AM
but every group have their customized signature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-21-2022 12:01 AM
this script is printing assignment group name in the signature but they have their customized signature how to achieve this