# Salesforce Marketing cloud

## Overview

Salesforce Marketing Cloud is a provider of digital marketing automation and analytics software and services

## Authentication

When using the Salesforce marketing cloud connector, the first thing you will have to do is click on 'New Authentication' in the step editor:
![add-auth](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-550b03d3_../../../../../images/add-auth.png)
Sales force marketing cloud uses server to server (Client Credentials) for authentication.
![salesforce-marketing-auth-client-credentials](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-abb19468_clientCredsAuth.png)
To get the required Client ID, Client Secret and tenant specific subdomain, you will need to create a salesforce market package.
In Marketing Cloud, go to Setup -> Apps -> Installed Packages.
![salesforce-marketing-installed-packages](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-3dd677a4_installPackagesMasked.png)
Click New. Give the package a name and description.
![salesforce-marketing-new-package](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-9931f609_newPackageMasked.png)
Save the package. After the package is saved, then click on it to view it. Under Components, click `Add Component` then select `API Integration`.
![salesforce-marketing-api-integration](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-d455dbba_apiIntegration.png)
Select the `Server-to-server` integration type.
![salesforce-marketing-server-to-server-app](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-da1a71e3_server-to-server-app.png)
You will need to select which scopes it has, in this case it's both of `Data Extensions` scopes.
![salesforce-marketing-auth-scopes](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-a5e0075d_authscopes.png)
Once you have setup the component, the package will now look like this:
![salesforce-marketing-auth-1](https://tray.ai/documentation/images/connectors/service/salesforce-marketing-cloud/697a2c4d-5b36d29e_sever2serverMaskedHighlights.png)
Ensure that the integration type is `Server-to-server`.
Now you can fill in the Client Id, Client Secret & tenant specific subdomain in the tray.io authentication. Note the tenant specific subdomain isn't the full URL, for example:
If your REST API endpoint was `mc563885gzs27c5t9-63k636ttgm.rest.marketingcloudapis.com` then your tenant specific subdomain would be `mc563885gzs27c5t9-63k636ttgm`
