Three Outlook steps tidy the mailbox once a workflow has dealt with an email: Move an email — Files an email in another folder; Mark read or unread; and Delete an email — Moves an email to Deleted Items.

Who can do this

Workspace Admins and Editors, on every plan.

Before you start

  • A Microsoft 365 connection allowed to Read and send mail.
  • An earlier step that gives the email's id — Search emails, for example.

Steps

Move an email:

  1. Select +, then in Apps select Outlook, then Move an email.
  2. Choose the Connection.
  3. In Email, put the email's id — The email to move.
  4. In Move to, choose the folder — Any folder in the mailbox, subfolders included.

Mark read or unread:

  1. Select +, then Outlook, then Mark read or unread.
  2. Choose the Connection, and put the id in Email.
  3. Under Mark as, choose Read (the default) or Unread.

Delete an email:

  1. Select +, then Outlook, then Delete an email.
  2. Choose the Connection, and put the id in Email — It goes to Deleted Items, as it does in Outlook.

Output

Step Fields
Move an email id — the email's new id in its new folder — folderId, subject.
Mark read or unread id, isRead.
Delete an email id, deleted (true).

Good to know

  • Moving gives the email a new id. Steps after a move must use {{ steps.move_an_email.id }}, not the id from before.
  • Deleting is not permanent. The email is in Deleted Items, as when you delete it in Outlook.
  • Runs once per item.

If something goes wrong

What you see Why What to do
Outlook refused: … Microsoft could not find the email or folder. Use the latest id; choose the folder again.
Move to is empty when the step ran — … No folder was set. Choose a folder.
This is no longer in the account's list. Choose again, or use a value from an earlier step. The folder was removed or renamed. Choose again.