onAttachmentUploaded

The event occurs after an attachment was uploaded using the right sidebar. The upload attachment function does not trigger the event.

This event returns the attachment id of the uploaded file in the variable: event.details

   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

Was this helpful?