Skip to main content
Use Outlook Mail to start a flow when an email arrives, and to work with email from inside a flow. This flow files every invoice from acme.com under Invoices and thanks the sender. Press Run to watch it. Every trigger and node needs an Outlook connection. See Connect Microsoft 365 to set one up.

Triggers

Both triggers check the mailbox every minute. Only email that arrives after you turn the trigger on starts a flow: email already in the mailbox never does. Leave a filter empty to match every email; an email must match every filter you set. Pass internet_message_id to the nodes below when the email may move between the trigger and the node.

Nodes

Every node except List Outlook Categories has a (Shared Mailbox) version. It works the same way, with one extra field, Shared mailbox, for the address of the shared mailbox.

Working with several emails

Bind a list of emails to a node and it handles each one. When one of several emails fails, the run continues and shows a warning for that email. The run fails only when every email fails, or when there was a single email.

Troubleshooting

Open the trigger’s events. Every skipped email is listed with a reason, such as Sender doesn't match, Subject doesn't contain "invoice" or Email has none of the selected categories. Email that was in the mailbox before the trigger was turned on never starts a flow.
The trigger retries an email that fails. After 30 minutes and three attempts it skips the email, notifies you, and lists it as skipped in the trigger’s events with the error.
The email was moved or deleted after its ID was read. message_id changes when an email moves, so pass internet_message_id instead.
Two emails share an Internet Message ID, which happens with email sent to yourself or copied by an inbox rule. Pass that email’s message_id instead.
For an OAuth connection, reconnect it and allow mail access. For a service principal, an admin must grant the Microsoft Graph permission named in the error. See Connect Microsoft 365.
Check the spelling, or use a path such as Inbox/Invoices or the folder’s ID.
Check the search query and the subject and sender filters. If you use Page token, it must come from a Read node with the same settings.
Shared mailbox nodes and triggers need an Outlook Shared Mailboxes connection, and the signed-in user needs Full Access to the mailbox in Exchange.