onAttachmentUploaded
The event occurs after an attachment was uploaded using the right sidebar. The upload attachment function does not trigger the event.
let attachmentId = eventArgs.details;
console.log(`attachment with the id ${attachmentId} was uploaded`);
//possible follow up to set the document type
app.setAttachmentDocumentType(attachmentId, 1);Last updated