Office.MailboxEnums.AttachmentStatus enum

Spécifie si une pièce jointe a été ajoutée ou supprimée d’un élément.

Remarques

[ Ensemble d’API : Boîte aux lettres 1.8 ]

Mode Outlook applicable : Rédiger ou Lire

Exemples

// 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);

Champs

Added = "added"

Une pièce jointe a été ajoutée à l’élément.

Removed = "removed"

Une pièce jointe a été supprimée de l’élément.