Skip to main content
outlook.addAttachment attaches a file to an unsent draft.
automations/add-outlook-attachment.automation.ts
Provide messageId and file: File. Optional inline defaults to false. contentId identifies an inline file referenced by HTML. Optional second argument { account } selects the binding. Files through 3,000,000 bytes use Graph’s direct attachment API. Larger files use a resumable upload session in 3,276,800-byte chunks. The maximum size is 150,000,000 bytes. Returns the attachment with its new attachmentId and decoded file data when Graph supplies it.