> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Mail Folder

Create a new mail folder in the root folder of the user's mailbox.
If you intend a new folder to be hidden, you must set the `isHidden` property to true on creation.

* **Least privileged** Microsoft Graph permission to access the action via **application**: `Mail.ReadWrite`.

```
Note: Using the delegated (OAuth) connection type will only allow to insert the connected user's ID. 
```

<Note>
  External Documentation

  To learn more, visit the [Microsoft Outlook documentation](https://learn.microsoft.com/en-us/graph/api/user-post-mailfolders?view=graph-rest-1.0\&tabs=http).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                      | Description                              |
  | ------------------------------ | ---------------------------------------- |
  | Display Name                   | The display name of the new folder.      |
  | User ID or User Principal Name | The ID or userPrincipalName of the user. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                           |
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Is Hidden | Indicates whether the new folder is hidden. Setting the property is optional. Once set, you cannot update this property. See more information in Hidden mail folders. |
</div>

## Example Output

```json theme={"dark"}
{
	"displayName": "Clutter",
	"parentFolderId": "AQMkADlmOGQwZmU3LWVjOWMtNDhiYgAtODcxNy1",
	"childFolderCount": 99,
	"unreadItemCount": 99,
	"totalItemCount": 99,
	"id": "hN2Y5OGRhNGYwODEALgAAA0DAKbvJvFhJgcT3lZpkhNQBAA1",
	"isHidden": true
}
```

## Workflow Library Example

[Create Mail Folder with Microsoft Outlook and Send Results Via Email](https://library.blinkops.com/workflows/create-mail-folder-with-microsoft-outlook-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-mail-folder-with-microsoft-outlook-and-send-results-via-email/canvas" />
</div>
