Dan P
11/19/2019, 7:09 AMNairolf
11/19/2019, 1:40 PMDan P
11/19/2019, 1:41 PMJohnnyC
11/19/2019, 1:42 PMNairolf
11/19/2019, 1:42 PMDan P
11/19/2019, 1:43 PMNairolf
11/19/2019, 1:45 PM//Add additional code
.
var senderId = -5;
var recipientEmail = <mailto:'notify@myCompany.com|'notify@myCompany.com>';
var timeStamp = new Date().getUTCMilliseconds();
var recipientId = 12;
var fileObj = file.load({
id: 88
});
email.send({
author: senderId,
recipients: recipientId,
subject: 'Test Sample Email Module',
body: 'email body',
attachments: [fileObj],
relatedRecords: {
entityId: recipientId,
customRecord:{
id:recordId,
recordType: recordTypeId //an integer value
}
}
});
...
This is the sample from help.Dan P
11/19/2019, 1:47 PMJohnnyC
11/19/2019, 1:48 PMDan P
11/19/2019, 1:49 PMNairolf
11/19/2019, 1:52 PMDan P
11/19/2019, 1:54 PMNairolf
11/19/2019, 1:56 PMDan P
11/19/2019, 2:00 PMNairolf
11/19/2019, 2:01 PMDan P
11/19/2019, 2:03 PMNairolf
11/19/2019, 2:05 PMDan P
11/19/2019, 2:11 PMNairolf
11/19/2019, 2:12 PMDan P
11/19/2019, 2:34 PMJohnnyC
11/19/2019, 3:28 PMNairolf
11/19/2019, 3:30 PMDan P
11/19/2019, 7:37 PM