I have a record with an attachment in field ‘s_attachment’ I am trying to send out an email with this code: //RECORD ATTACHMENT
var tranrecord = new Object();
tranrecord[‘transaction’] = stInternalId.toString();
if(objRecord[‘type’]== ‘11’ || objRecord[‘type’]== ‘10’){
if(objRecord[‘firstSequence’])
nlapiSendEmail(stEmailSender, stApprover, stSubject, stBody, null, null, null, null);//tranrecord, objPDFTrans);
}else
nlapiSendEmail(stEmailSender, stApprover, stSubject, stBody, null, null, null, null);//tranrecord, objPDFTrans);