- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 07:10 AM - edited 04-22-2024 07:45 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 07:47 AM - edited 04-22-2024 09:52 AM
Where did you find the "email.send()" function?
You'll want to take a look at this page: Example scripting for email notifications
I have not tried it, but something like this should work:
(function runMailScript(current, template, email, email_action, event) {
var email = current.variables.partner.toString(); //get the email address
var name = current.variables.partner.getDisplayValue(); //get the name of the person
email.addAddress("cc", email, name); //add the address to the Email
})(current, template, email, email_action, event);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 07:47 AM - edited 04-22-2024 09:52 AM
Where did you find the "email.send()" function?
You'll want to take a look at this page: Example scripting for email notifications
I have not tried it, but something like this should work:
(function runMailScript(current, template, email, email_action, event) {
var email = current.variables.partner.toString(); //get the email address
var name = current.variables.partner.getDisplayValue(); //get the name of the person
email.addAddress("cc", email, name); //add the address to the Email
})(current, template, email, email_action, event);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 08:54 AM
Hi @Jim Coyne
Thanks a lot for your time and reply. It is working absolutely fine. 😊