- 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-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-21-2022 01:20 AM
But there are too many groups so for every group i need to paas sys id ? is there any dynamic way
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 01:35 AM
can i pass sys_id of the parent group ?