ngill4492
11/16/2020, 6:35 PMSandii
11/16/2020, 6:51 PMerictgrubaugh
11/16/2020, 6:53 PMEmail
instance which gets passed into your entry point has a getAttachments()
method which returns an Array of Attachment
instances, each of which has a getValue()
method to return the file contentserictgrubaugh
11/16/2020, 6:54 PMFile
and attach it to the appropriate Record
ngill4492
11/16/2020, 6:55 PMngill4492
11/16/2020, 6:55 PMerictgrubaugh
11/16/2020, 7:07 PMemail.getAttachments().map(function (attachment) {
return nlapiSubmitFile(
nlapiCreateFile(attachment.getName(), attachment.getType(), attachment.getValue())
);
}).forEach(function (fileId) {
nlapiAttachRecord("file", fileId, recordType, recordId);
});
alien4u
11/16/2020, 7:44 PMalien4u
11/16/2020, 7:45 PMerictgrubaugh
11/16/2020, 7:46 PMAttachment
also a valid File
?erictgrubaugh
11/16/2020, 7:46 PMalien4u
11/16/2020, 7:46 PMerictgrubaugh
11/16/2020, 7:46 PMalien4u
11/16/2020, 7:47 PMalien4u
11/16/2020, 7:48 PMalien4u
11/16/2020, 7:48 PMngill4492
11/16/2020, 8:33 PM