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

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Get Mailbox activity

# Get Mailbox activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The Get Mailbox activity gets the mailbox for the specified user or all mailboxes on a
Microsoft Exchange server.
This activity implements the Microsoft Exchange [Get-Mailbox](https://technet.microsoft.com/en-us/library/bb123685(v=exchg.160).aspx) command.  
To access this activity in the Workflow Editor, select the Custom tab, and then navigate to Custom ActivitiesExchangeMailbox.  
Hinweis:  
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/MjnUEg~6RmXMwQSzlAKDTA "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/8OYaonyVEUHUlQE7wAXD_w#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_GetMailboxActivity__table_n4h_h2v_qt__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. |
| user | User whose mailbox this activity should retrieve. If no user is specified, the activity gets all mailboxes on the Exchange server. The activity passes this value to Exchange as the Identity Exchange variable. |
| 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. Hinweis: When passing a switch parameter, such as ForceUpgrade, you must use the format "parameter":"true". |
[Tabelle : 1. Get Mailbox input variables]

{#r_GetMailboxActivity__table_n4h_h2v_qt}

## Output variables

{#r_GetMailboxActivity__table_q4y_k2v_qt__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. |
[Tabelle : 2. Get Mailbox output variables]

{#r_GetMailboxActivity__table_q4y_k2v_qt}

## Conditions

{#r_GetMailboxActivity__table_evc_n2v_qt__entry__2}

| Condition | Description |
|-|-|
| Success | The activity succeeded in retrieving the attributes of the specified mailbox. |
| Failure | The activity failed to retrieve the attributes of the specified mailbox. |
[Tabelle : 3. Get Mailbox conditions]

{#r_GetMailboxActivity__table_evc_n2v_qt}

