capabilities.work

Reorganize Folder

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

Recipe · 3 steps

Reorganize Folder

Create a parent folder, find a folder by name, and move it under the parent.

  1. Create the destination parent folder in the root of the mailbox and capture its folder id.
  2. Search the top-level mail folders for the first folder whose display name matches the supplied source folder name.
  3. Move the source folder beneath the destination folder by passing the destination folder id. Graph returns 200 with the moved folder.
What you'll need to have ready
  • destinationFolderName: The display name of the new destination parent folder.
  • sourceFolderName: The display name of the existing folder to move.
For your developer

Arazzo workflow microsoft-outlook:reorganize-folder, 3 operations: createMailFolder → listMailFolders → moveMailFolder. Specs on APIs.io.