zackb
10/10/2017, 2:26 PMif (recipientEmail){
email.send({
author: senderId,
recipients: recipientEmail,
subject: 'Here is your Statement from ' + begdate + ' to ' + enddate,
body: 'Your Statement is below:',
attachments: [newfile],
relatedRecords: {
entityId: ownerInternalID
}
});
}