Skip to main content

Documentation Index

Fetch the complete documentation index at: https://explore.airia.com/llms.txt

Use this file to discover all available pages before exploring further.

Microsoft Outlook actions let an agent work with a mailbox directly in a flow. An agent can send and reply to messages, manage drafts and folders, move messages, and handle attachments, then pass the results to later steps.

Supported actions

GroupActions
MessageSend, Get, Get Mime, Update, Move, Reply, Delete
DraftCreate, Update, Get, Send, Delete
FolderGet All, Get, Get Children, Delete
Folder messageGet All
AttachmentAdd, Get, Download

Prerequisites

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.
InputRequiredDescription
ToYesRecipient addresses, comma separated for multiple recipients.
CcNoCarbon copy addresses, comma separated.
BccNoBlind carbon copy addresses, comma separated.
SubjectYesThe subject line of the message.
BodyYesThe body content of the message.
Body Content TypeNoThe body format, either Text or Html. Defaults to Text.
ImportanceNoThe message importance, one of Low, Normal, or High. Defaults to Normal.
Save To Sent ItemsNoToggle. Set on to save a copy in Sent Items. Defaults to on.

Microsoft Outlook Message Get

Retrieves a message by ID.
InputRequiredDescription
Message IDYesThe message to retrieve.

Microsoft Outlook Message Get Mime

Retrieves the raw MIME content of a message.
InputRequiredDescription
Message IDYesThe message to retrieve. Returns the raw MIME content.

Microsoft Outlook Message Update

Updates a message.
InputRequiredDescription
Message IDYesThe message to update.
Is ReadNoToggle. Set on to mark the message as read, off to mark it as unread.
CategoriesNoComma separated list of categories to apply.

Microsoft Outlook Message Move

Moves a message to another folder.
InputRequiredDescription
Message IDYesThe message to move.
Destination Folder IDYesThe folder to move the message into.

Microsoft Outlook Message Reply

Replies to a message.
InputRequiredDescription
Message IDYesThe message to reply to.
CommentYesThe reply body.
Reply AllNoToggle. Set on to reply to all recipients. Defaults to off.

Microsoft Outlook Message Delete

Deletes a message.
InputRequiredDescription
Message IDYesThe message to delete.

Draft

Microsoft Outlook Draft Create

Creates a draft message.
InputRequiredDescription
ToNoRecipient addresses, comma separated.
CcNoCarbon copy addresses, comma separated.
BccNoBlind carbon copy addresses, comma separated.
SubjectNoThe subject line of the draft.
BodyNoThe body content of the draft.
Body Content TypeNoThe body format, either Text or Html. Defaults to Text.
ImportanceNoThe draft importance, one of Low, Normal, or High. Defaults to Normal.

Microsoft Outlook Draft Update

Updates a draft message.
InputRequiredDescription
Message IDYesThe draft to update.
ToNoRecipient addresses, comma separated.
CcNoCarbon copy addresses, comma separated.
BccNoBlind carbon copy addresses, comma separated.
SubjectNoThe subject line of the draft.
BodyNoThe body content of the draft.
Body Content TypeNoThe body format, either Text or Html.
ImportanceNoThe draft importance, one of Low, Normal, or High.

Microsoft Outlook Draft Get

Retrieves a draft by ID.
InputRequiredDescription
Message IDYesThe draft to retrieve.

Microsoft Outlook Draft Send

Sends an existing draft.
InputRequiredDescription
Message IDYesThe draft to send.

Microsoft Outlook Draft Delete

Deletes a draft.
InputRequiredDescription
Message IDYesThe draft to delete.

Folder

Microsoft Outlook Folder Get All

Lists mail folders.
InputRequiredDescription
TopNoMaximum number of folders to return, from 1 to 1000. Defaults to 100.

Microsoft Outlook Folder Get

Retrieves a folder by ID.
InputRequiredDescription
Folder IDYesThe folder to retrieve.

Microsoft Outlook Folder Get Children

Lists the child folders of a folder.
InputRequiredDescription
Folder IDYesThe parent folder to read child folders from.
TopNoMaximum number of folders to return, from 1 to 1000. Defaults to 100.

Microsoft Outlook Folder Delete

Deletes a folder.
InputRequiredDescription
Folder IDYesThe folder to delete.

Folder message

Microsoft Outlook Folder Message Get All

Lists messages in a folder.
InputRequiredDescription
Folder IDYesThe folder to read messages from. Accepts a well known name (inbox, drafts, sentitems, deleteditems) or a folder ID. Defaults to inbox.
TopNoMaximum number of messages to return, from 1 to 1000. Defaults to 50.
FilterNoAn OData filter, such as isRead eq false.

Attachment

Microsoft Outlook Attachment Add

Adds an attachment to a message.
InputRequiredDescription
Message IDYesThe message to attach the file to.
File NameYesThe name of the attachment file.
Content Base64YesThe attachment content, base64 encoded.
Content TypeNoThe MIME type of the attachment.

Microsoft Outlook Attachment Get

Retrieves attachment metadata for a message.
InputRequiredDescription
Message IDYesThe message to read attachments from.
Attachment IDNoA specific attachment to retrieve. Leave empty to list all attachments.

Microsoft Outlook Attachment Download

Downloads an attachment.
InputRequiredDescription
Message IDYesThe message that holds the attachment.
Attachment IDYesThe attachment to download.

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

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.
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.
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.
The Microsoft OAuth credential expired or was revoked. Reconnect the credential and confirm the required mail permissions were granted during consent.
For issues common to every vendor, see the Actions overview.