Get Outlook Email Attachment
Description
The Get Outlook Email Attachment activity downloads an attachment from a Microsoft 365 (Outlook) email using an attachment reference obtained from the Read Outlook Email activity.
The attachment reference is a JSON payload containing the required message and attachment metadata to retrieve the file from Microsoft Graph.
Common settings
Use Process Data to bind supported inputs to workflow values or upstream outputs. See Common Activity Features for shared execution, error-handling, and output-persistence settings. Availability depends on the activity.
Design-Time Configuration
Display Text
Specifies the activity's display name as shown on the workflow canvas.
Attachment Reference
Specifies the attachment reference JSON obtained from the Read Outlook Email activity.
Use the value from the AttachmentReference property of the selected email attachment.
Execution Control (Wait All Incoming)
Controls how the activity behaves when multiple incoming execution paths converge.
For detailed behavior and usage guidelines, see Execution Control – Wait All Incoming.
Error Handling (On Error)
Defines how the workflow proceeds if the activity encounters an error.
Supported strategies include Fault, Continue, Suspend, and Retry.
For details, see On Error Handler.
Output
File Content
Returns the attachment content as a Base64-encoded string.
File Name
Returns the original file name of the attachment.
Content Type
Returns the MIME type of the attachment (for example, application/pdf, image/png).
Size
Returns the attachment's size in bytes.
Is Inline
Indicates whether the attachment is an inline attachment (true / false).
Example: Retrieve one attachment
Iterate over Read Outlook Email → Emails, then over the current email's Attachments. Bind the selected attachment's AttachmentReference to this activity. Use File Content only with a downstream input that expects Base64 bytes, and use File Name and Content Type when storing those bytes.
If the next activity accepts a File Reference, bind the attachment's File directly instead. AttachmentReference identifies the mailbox item; File Content contains its encoded bytes. See Mail Models.