Supported actions
Prerequisites
Create a Microsoft OAuth credential
Create a Microsoft OAuth credential
Set up a Microsoft OAuth credential by following the Microsoft Entra OAuth setup guide, store it in Credential Management, then select it on every Microsoft Outlook action. These actions also support end user authentication, so a step can act on each user’s own mailbox.
How to use these actions
- Map text inputs from earlier steps. Inputs such as To, Subject, and Body accept a value mapped from a previous step. The Body Content Type and Importance selections, the Save To Sent Items, Is Read, and Reply All toggles, and Top take fixed values.
- Recipient fields accept multiple addresses. To, Cc, and Bcc accept multiple comma separated addresses.
- Folder message lookups accept a name or an ID. The Folder Message Get All action accepts a well known folder name (
inbox,drafts,sentitems,deleteditems) or a folder ID. - List actions use OData syntax. The Filter input uses OData syntax such as
isRead eq false. - Attachment content is base64 encoded. Provide attachment content as a base64 encoded value.
Actions
Message
Microsoft Outlook Message Send
Sends a new message.Microsoft Outlook Message Get
Retrieves a message by ID.Microsoft Outlook Message Get Mime
Retrieves the raw MIME content of a message.Microsoft Outlook Message Update
Updates a message.Microsoft Outlook Message Move
Moves a message to another folder.Microsoft Outlook Message Reply
Replies to a message.Microsoft Outlook Message Delete
Deletes a message.Draft
Microsoft Outlook Draft Create
Creates a draft message.Microsoft Outlook Draft Update
Updates a draft message.Microsoft Outlook Draft Get
Retrieves a draft by ID.Microsoft Outlook Draft Send
Sends an existing draft.Microsoft Outlook Draft Delete
Deletes a draft.Folder
Microsoft Outlook Folder Get All
Lists mail folders.Microsoft Outlook Folder Get
Retrieves a folder by ID.Microsoft Outlook Folder Get Children
Lists the child folders of a folder.Microsoft Outlook Folder Delete
Deletes a folder.Folder message
Microsoft Outlook Folder Message Get All
Lists messages in a folder.Attachment
Microsoft Outlook Attachment Add
Adds an attachment to a message.Microsoft Outlook Attachment Get
Retrieves attachment metadata for a message.Microsoft Outlook Attachment Download
Downloads an attachment.Example
An agent that processes incoming invoices and files them away:1
Find unread mail
A Microsoft Outlook Folder Message Get All action sets Folder ID to
inbox and Filter to isRead eq false so the flow reads only new messages.2
Pull the attachment
A Microsoft Outlook Attachment Download action maps Message ID to a message from the previous step and downloads the invoice file for a later step to process.
3
Mark and move
A Microsoft Outlook Message Update action sets Is Read on, then a Microsoft Outlook Message Move action sets Destination Folder ID to an archive folder.
Troubleshooting
Message or folder not found
Message or folder not found
The Message ID or Folder ID does not exist in the connected mailbox. Confirm the ID with a Get All action and that the credential is for the correct account.
Folder name not recognized
Folder name not recognized
The Folder Message Get All action accepts the well known names
inbox, drafts, sentitems, and deleteditems, or a folder ID. Other folders must be referenced by their ID, which you can look up with Microsoft Outlook Folder Get All.Invalid OData filter
Invalid OData filter
The Filter input must be valid OData syntax, such as
isRead eq false. Check field names and operators if the action returns a query error.Authentication failed
Authentication failed
The Microsoft OAuth credential expired or was revoked. Reconnect the credential and confirm the required mail permissions were granted during consent.
