# Use Outlook 365

> `UiPath.Mail.Activities.Business.ExchangeApplicationCard`

`UiPath.Mail.Activities.Business.ExchangeApplicationCard`

Selects an online Outlook 365 account to use in your automation and enables Studio to integrate with Outlook 365. After you add this activity, add the activities that work with data from the account inside Use Outlook 365. When you configure the activities added inside it, you can select data from the account directly from Studio.

:::note
Due to the change to the Graph API, there may exist undocumented differences in behavior between .NET 461 and .NET 5 projects.
:::

## Configuring the activity

#### In the body of the activity

* **Account** - Select the account to use.
* **Shared mailbox to use** - Uses a shared mailbox instead of the current email address. Enter an address that you can use.
* **Reference as** - Enter a name by which to refer to the account in the automation project.

**Selecting An Account**

The way you indicate the account to use depends on whether or not the **Use Integration Service** option is selected in the **Properties** panel. When the option is selected, it indicates that the [Integration Service](https://docs.uipath.com/integration-service/automation-cloud/latest) in Automation Cloud manages the connection. When not selected, it indicates you are connecting using an [application added to the Azure AD](https://docs.uipath.com/activities/other/latest/productivity/configuring-the-azure-ad-for-outlook-365-automation).

**When Using the Integration Service:**

Add a new account or use an account connection you already added to the Integration service.

* If a connection does not already exist, select **Add new account** from the drop-down menu to add a new account connection. A browser window opens and you are prompted to select the account to use and grant the required permissions to UiPath. When the connection is created, the **Default** option is selected in the **Account** drop-down.
* If a connection has already been added, it is automatically detected and displayed in the menu as the **Default** option.

**When Not Using the Integration Service:**

Add a new account or select an account you already added from a Use Outlook 365 activity.

* If you choose to add a new account and the Outlook 365 application and tenant IDs are [added in Orchestrator](https://docs.uipath.com/activities/other/latest/productivity/adding-app-credentials-for-outlook-365-gmail-in-orchestrator), you are prompted to sign in to your Microsoft account.
* If you choose to add a new account and the Outlook 365 application and tenant IDs are not added in Orchestrator, the **Add Exchange Account** dialog box opens to help you add the account:
  * **Authentication type** - Select one of the following options:
    * **Default** - Uses the UiPath application and tenant ID.
    * **My ID/Tenant** - Fill in the **Application ID** and **Tenant ID (when required)** fields with your organization's own application and tenant IDs.
  * **Use broker** - Add a checkmark to this option to use the Windows Authentication Manager (WAM) broker for interactive authentication. This option provides a more integrated authentication experience on Windows.
  * Select **OK** to sign in to your Microsoft account.

#### Properties panel

**Authentication**

* **ApplicationId** - Read-only, this is set when the account is added.
* **Email** - Outlook 365 user account. Read-only, this is set when the account is added.
* **TenantId** - Read-only, this is set when the account is added.

**Common**

* **DisplayName** - The name displayed for the activity in the Designer panel.

**Integration Service**

* **Use Integration Service** - If selected, the Integration service in Automation Cloud manages the connection.

**Misc**

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
