Folder exists
Check whether a mail folder exists, by top-level display name or by a path such as Inbox/Invoices, and return its id.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/mail_folder_exists · 4 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Name | String | Yes | Folder display name, e.g. Invoices, or a path such as Inbox/Invoices/2026 (/ or \ between levels). | |
| Mailbox | String | No | me | Mailbox: me, or a user's email address (needs application permission). |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| exists | Boolean | True when the folder exists. |
| folder_id | String | Folder id, empty when it does not exist. |