Microsoft Exchange · Arazzo Workflow

Microsoft Exchange Organize a Folder and File a Message

Version 1.0.0

Create a mail folder, confirm it, and create a message inside it.

1 workflow 1 source API 1 provider
View Spec View on GitHub CalendarCollaborationContactsEmailEnterpriseArazzoWorkflows

Provider

microsoft-exchange

Workflows

organize-folder-and-file-message
Create a mail folder and file a new message into it.
Creates a named mail folder, fetches it to verify creation, and creates a message with subject and body within the new folder.
3 steps inputs: bodyContent, folderName, subject outputs: folderId, messageId
1
createFolder
Create a new mail folder in the root of the mailbox with the supplied display name.
2
getFolder
Read the newly created folder back to confirm its identity and item counts before filing a message.
3
createMessage
Create a message with subject and HTML body directly inside the new mail folder.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Exchange Organize a Folder and File a Message
  summary: Create a mail folder, confirm it, and create a message inside it.
  description: >-
    A mailbox organization pattern on Microsoft Graph mail. The workflow creates
    a new top-level mail folder, reads it back to confirm its identity and
    counts, and then creates a message directly inside that folder. Each step
    inlines its request so the flow can be executed without consulting the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: mailFoldersApi
  url: ../openapi/microsoft-exchange-mail-folders-api-openapi.yml
  type: openapi
workflows:
- workflowId: organize-folder-and-file-message
  summary: Create a mail folder and file a new message into it.
  description: >-
    Creates a named mail folder, fetches it to verify creation, and creates a
    message with subject and body within the new folder.
  inputs:
    type: object
    required:
    - folderName
    - subject
    - bodyContent
    properties:
      folderName:
        type: string
        description: The display name of the mail folder to create.
      subject:
        type: string
        description: The subject of the message to file in the folder.
      bodyContent:
        type: string
        description: The HTML body content of the message.
  steps:
  - stepId: createFolder
    description: >-
      Create a new mail folder in the root of the mailbox with the supplied
      display name.
    operationId: createMailFolder
    requestBody:
      contentType: application/json
      payload:
        displayName: $inputs.folderName
        isHidden: false
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      folderId: $response.body#/id
      displayName: $response.body#/displayName
  - stepId: getFolder
    description: >-
      Read the newly created folder back to confirm its identity and item
      counts before filing a message.
    operationId: getMailFolder
    parameters:
    - name: mailFolder-id
      in: path
      value: $steps.createFolder.outputs.folderId
    - name: $select
      in: query
      value: displayName,totalItemCount,childFolderCount
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      totalItemCount: $response.body#/totalItemCount
  - stepId: createMessage
    description: >-
      Create a message with subject and HTML body directly inside the new mail
      folder.
    operationId: createMessageInFolder
    parameters:
    - name: mailFolder-id
      in: path
      value: $steps.createFolder.outputs.folderId
    requestBody:
      contentType: application/json
      payload:
        subject: $inputs.subject
        body:
          contentType: html
          content: $inputs.bodyContent
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      messageId: $response.body#/id
      parentFolderId: $response.body#/parentFolderId
  outputs:
    folderId: $steps.createFolder.outputs.folderId
    messageId: $steps.createMessage.outputs.messageId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-exchange-organize-folder-and-file-message-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.