Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Office.MailboxEnums.AttachmentStatus enum
- Package:
- outlook
Specifies whether an attachment was added to or removed from an item.
Remarks
Applicable Outlook mode: Compose or Read
Used by
Examples
// Get the attachment that was just added to a message or appointment.
function myHandlerFunction(eventarg) {
if (eventarg.attachmentStatus === Office.MailboxEnums.AttachmentStatus.Added) {
const attachment = eventarg.attachmentDetails;
console.log("Event Fired and Attachment Added!");
getAttachmentContentAsync(attachment.id, options, callback);
}
}
Office.context.mailbox.item.addHandlerAsync(Office.EventType.AttachmentsChanged, myHandlerFunction, myCallback);
Fields
| Added = "added" | An attachment was added to the item. |
| Removed = "removed" | An attachment was removed from the item. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
