# Salesforce Marketing Cloud authentication

> Depending on the authentication type you select, you need one of
the following credentials:

## Prerequisites

Depending on the authentication type you select, you need one of
the following credentials:

* OAuth 2.0 Authorization code: Tenant, and the email address and password associated with your Salesforce account.
* Bring your own OAuth 2.0 app: Tenant, Client ID, and Client secret.

To learn how to create your own OAuth 2.0 application, refer to the Salesforce [documentation](https://help.salesforce.com/s/articleView?id=sf.connected_app_client_credentials_setup.htm&type=5).

:::note
When registering your OAuth application in Salesforce Marketing Cloud, make sure to set the [callback URL](connections#callback-url) to the value displayed on the connection creation page, for example `https://cloud.uipath.com/provisioning_/callback` for Automation Cloud.
:::

## Retrieve the Tenant name

You can retrieve your **Tenant name** from your Salesforce Marketing Cloud account.

1. Log in to your account.
2. Go to the **Setup** screen ( you can hover over your account name in the upper-right corner and select **Setup** from the drop-down menu).
3. On the left-side menu, select **Company Settings**, then select **Account Settings**.
4. You should be able to see your tenant name next to SOAP WSDL in the form of: `https://example.soap.marketingcloudapis.com/ETFramework.wsdl`.

   Note: On your account, instead of **example**, the address will include your tenant name. Copy it and use it to establish the connection using the UiPath Integration Service.

## Add the Salesforce Marketing Cloud connection

To create a connection to your Salesforce Marketing Cloud instance, you need to perform the following steps:

1. Select Orchestrator from the product launcher.
2. Select a folder, and then navigate to the **Connections** tab.
3. Select **Add connection**.
4. To open the connection creation page, select the connector from the list. You can use the search bar to find the connector.
5. Select an authentication type: OAuth 2.0 Authorization code (default option) or Bring your own OAuth 2.0 app.
6. Enter the required credentials for your preferred authentication method and select **Connect**.

   For any secret-type field, you can select the menu next to the field and choose **Use credential asset** to reference an Orchestrator credential asset linked to an external vault instead of entering the value directly. For more information, see [Use credential assets for connections](credential-store-connections.md).
