---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create Mailbox activity

# Create Mailbox activity {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Create Mailbox activity

The Create Mailbox activity allows ServiceNow customers to automate the creation of a new Active Directory user and a Microsoft Exchange mailbox for that user, provided the user does not already exist.
It implements the Microsoft Exchange New-Mailbox command and is accessible in the Workflow Editor under Custom Activities \> Exchange \> Mailbox.
This activity replaces the older Exchange activity of the same name from releases prior to Geneva, ensuring compatibility with existing workflows while requiring new workflows to use this updated version.
Show full answer Show less  

## Key Features

* **Integration with Exchange Server:** Connects to the Exchange server using the specified hostname (not IP address) and domain, requiring the MID Server to be in the same domain.
* **User Details Input:** Collects user attributes such as first name, middle initial, last name, alias (used for mailbox address and user principal name if not specified), and password (encrypted during transmission).
* **Custom Parameters:** Accepts optional JSON-formatted parameters for advanced Exchange server commands, with automatic handling of SecureString conversion for plain text inputs and strict validation against duplicate or malformed parameters.
* **Output Management:** Provides output variables including operation result (success or failure), error messages if any, and the raw XML payload returned from the Exchange server containing all mailbox attributes.

## Key Outcomes

* **Successful Creation:** The activity creates a new mailbox and Active Directory account if none exists, enabling seamless user onboarding.
* **Error Handling:** Provides clear failure conditions and error messaging to assist in troubleshooting mailbox creation issues.  
The Create Mailbox activity creates a new Active Directory user, if that user does not
already exist, and a Microsoft Exchange
mailbox for that user.
This activity implements the Microsoft Exchange [New-Mailbox](http://technet.microsoft.com/en-us/library/aa997663(v=exchg.150).aspx) command.  
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom ActivitiesExchangeMailbox.  
Note:  
This activity replaces an Exchange activity by the same name available in releases prior to Geneva. If you have a workflow created in a previous version that uses the deprecated activity, your workflow will continue to work normally after upgrading to Geneva. However, all new workflows must use the custom version of this activity. This activity was built with the [PowerShell activity designer](https://servicenow-prod.fluidtopics.net/tKDeqXtFqxyUAcla~PRTvA "PowerShell activities are configured to return data to a workflow from a host using Microsoft PowerShell."), which gives workflow administrators the ability to store input and output variables in the [databus](https://servicenow-prod.fluidtopics.net/qJ9Ttt5MQ8x_luCydEUXeQ#t_ReuseDataInTheActivityDesigner "The Data tab in the Workflow Editor lists all custom activities used in the current workflow that produce data and displays that data for reuse in other custom activities.").

## Input variables

{#r_CreateMailboxActivity__table_lgv_2hg_vs__entry__2}

| Variable | Description |
|-|-|
| hostname | The hostname of the Exchange server with which the activity interacts. Do not enter an IP address in this variable. |
| domain | The name of the Exchange server's assigned domain. Important: The MID Server must be in the same domain as the Exchange server. |
| first_name | First name of the user. |
| middle_initial | Middle initial of the user. |
| last_name | Last name of the user. |
| alias | The display name for the mailbox address, the part of the email address to the left of the @ symbol. If no alias is specified, the activity uses First name.Last name as the alias. The alias is also used as the user's principal name (UPN) if none is specified in the optional parameters. |
| password | Password to use for the new mailbox. The password is encrypted when it is sent to the target host. |
| parameters | Optional parameters to pass to the Exchange server written in JavaScript Object Notation (JSON). Exchange activities cannot pass parameters that reference an object, such as a PSCredential object. Plain text is automatically converted to SecureString objects for parameters that require that data type. Attempting to save an activity that specifies duplicate parameters, including parameters from activity variables, or incorrectly formatted JSON causes a warning message to appear. Note: When passing a switch parameter, such as ForceUpgrade, you must use the format "parameter":"true". |
[Table 1. Create Mailbox input variables]

{#r_CreateMailboxActivity__table_lgv_2hg_vs}

## Output variables

{#r_CreateMailboxActivity__table_g4v_hng_vs__entry__2}

| Variable | Description |
|-|-|
| result | Either success or failure. |
| error | Error message if the operation fails. |
| output | Raw XML payload from the Exchange server. This data includes all Exchange attributes. |
[Table 2. Create Mailbox output variables]

{#r_CreateMailboxActivity__table_g4v_hng_vs}

## Conditions

{#r_CreateMailboxActivity__table_r3x_44g_vs__entry__2}

| Condition | Description |
|-|-|
| Success | The activity succeeded in creating a new mailbox for the specified user. If no Active Diectory account existed for that user, this activity succeeded in creating a new account. |
| Failure | The activity failed to create a new mailbox or an Active Directory account for the specified user. |
[Table 3. Create Mailbox conditions]

{#r_CreateMailboxActivity__table_r3x_44g_vs}

*[\>]: and then


