Skip to main content
addAttachment attaches a file directly to an unsent Outlook draft.
automations/add-outlook-attachment.automation.ts
messageId and file: File are required. Optional inline defaults to false; contentId identifies an inline file referenced by HTML. Optional account selects the binding. The file must be no larger than 3,000,000 bytes. Larger Outlook attachments require an upload-session flow that this action does not expose. Returns the created normalized attachment, including its new attachmentId and decoded file data when Graph echoes it.