Send mail to Delegates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2017 01:30 AM
Hi All,
Can anyone create an email notification to delegates when he is added as delegate.
The mail should only contain the fields which are checked(true).
Fields in delegate tables are:
Approval,
Assignment,
CC Notification,
Meeting Invitation.
Thanks,
Subramani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2017 02:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2017 02:26 AM
Hello Subramani,
I request you to please go through below links which help me you in sorting your delegate email issue.
Delegation - Approvals different types
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
Abdul Azeez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2017 03:08 AM
I think what you need is this:
Create a new notification:
Table: delegate [sys_user_delegate]
When to send: Record inserted or updated: Inserted
Who will receive: Users/groups in fields: delegate
What it will contain:
In Message HTML:
Hi,
You are now a delegate of User: ${user}
You can now:
${mail_script:notify_delegate}
thanks...
Then create a Notification Email Script:
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
// Add your code here
//this part will check if the items are checked and add them to the mail if they are
if(current.approvals == true)
template.print('Approvals: true' + '<br \>');
if(current.assignments == true)
template.print('Assignments: true' + '<br \>');
if(current.notifications == true)
template.print('Notifications: true' + '<br \>');
if(current.invitations == true)
template.print('Invitations: true' + '<br \>');
})(current, template, email, email_action, event);
You can add to the email itslef the start and end dates, for example...
harel
Please mark as correct or helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2021 05:18 AM
Hi I tried the above script but it doesnot seems to be working. Can you please suggest what wrong I am doing.
Message HTML:
Hi ${delegate.first_name},
You have been set as a delegate of ${user}. Please find the details below.
Delegation starts: ${starts}
Delegation ends: ${ends}
Delegation for:
${mail_script: approval_delegate_cc}
Email Script:
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
//this part will check if the items are checked and add them to the mail if they are
if (current.approvals == true)
template.print('Approvals: true' + '<br \>');
if (current.assignments == true)
template.print('Assignments: true' + '<br \>');
if (current.notifications == true)
template.print('Notifications: true' + '<br \>');
if (current.invitations == true)
template.print('Invitations: true' + '<br \>');
})(current, template, email, email_action, event);