capabilities.work

File Message into New Folder

A 3-step recipe with Microsoft Outlook. We can help you get access.

Recipe · 3 steps

File Message into New Folder

Create a folder, locate a message, and move the message into it.

  1. Create a new top-level mail folder in the root of the mailbox and capture its folder id for use as a move destination.
  2. Search the mailbox for the first message whose subject equals the supplied filter value.
  3. Move the matched message into the new folder by passing the folder id as the destination. Graph returns 201 with the moved message copy.
What you'll need to have ready
  • folderName: The display name of the new mail folder to create.
  • subjectFilter: The exact subject value to match when finding the message.
For your developer

Arazzo workflow microsoft-outlook:file-message-into-new-folder, 3 operations: createMailFolder → listMessages → moveMessage. Specs on APIs.io.