> ## Documentation Index
> Fetch the complete documentation index at: https://help.os.translated.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up the Salesforce Marketing Cloud connector

> API access, preparing your Data Extensions, and getting to a tested setup

For Marketing Cloud administrators and whoever builds your Data Extensions.

Most of the work here is on your side, in Marketing Cloud. Translated configures the connector once you have it ready.

**1. Create API access**

In Marketing Cloud, create an **Installed Package** with an **API Integration** component of type **Server-to-Server**. Create one package per business unit to translate, or a single package with access to all of them.

Grant these permissions:

* Data Extensions: Read and Write
* Documents and Images: Read and Write
* Saved Content: Read and Write
* Email: Read and Write

Send Translated the following for each business unit, through the secure channel we agree on:

* the business unit name
* its **MID**
* the **subdomain**, the part of `https://<subdomain>.auth.marketingcloudapis.com`
* the **client ID** and **client secret**

> [!WARNING]
>
> Never send the client secret by email or chat in plain text.

Use a dedicated integration user rather than a person's account. The connector acts as this user, and its permissions decide what can be read and written.

**2. Prepare your Data Extensions**

A Data Extension is listed in the intake manager only when it meets **all** of these requirements.

| What to do | Why |
| - | - |
| Add a **locale column**, recommended name `Locale`: type Text, longer than 10 characters, and part of the primary key. | The connector reads each row's language from it and writes the target language into it. |
| Add a **parent column**, recommended name `ParentTargetId`: type Text, not part of the primary key, and longer than the sum of the lengths of your primary key fields. A key of two 50-character fields plus a 10-character locale needs at least 150. | It links each translated row back to its master. |
| Give the parent column a fixed default value on master rows, recommended `MASTER`. Leaving it empty also works. | It is how the connector tells a master row from a translation. |
| Have **at least one text field to translate**: a visible, writable Text field outside the primary key. | Only these fields are sent for translation. |
| Use a Data Extension that is **not shared or synchronised**. | Those are read-only, so they are never listed. |
| Make the text fields long enough for your translations. A Text field holds at most 4000 characters. | A translation longer than its field is rejected at delivery. |

We recommend the same setup in every business unit. Other column names work too: tell us what you use and we configure the connector to match.

**Optional, and all supported:**

* Keep other columns of any kind. They are copied unchanged to the translated rows.
* Keep several languages in the same Data Extension. Only master rows are listed and ordered.
* Keep the language codes you already use. Do not add rows just to match our examples.
* Leave some fields out of translation, for example codes, URLs, or personal data. By default every visible, writable text field is translated, so tell us which to exclude.

### Worked example

A Data Extension named `Texts`, primary key (`Id`, `Locale`), parent column `ParentTargetId`, text field `Text`.

What you build:

| Id | Locale | ParentTargetId | Text |
| - | - | - | - |
| 1 | `en-GB` | `MASTER` | Welcome! |
| 2 | `en-GB` | `MASTER` | Thank you for your order |

After Italian and French are delivered:

| Id | Locale | ParentTargetId | Text |
| - | - | - | - |
| 1 | `en-GB` | `MASTER` | Welcome! |
| 2 | `en-GB` | `MASTER` | Thank you for your order |
| 1 | `it-IT` | `1\|en-GB` | Benvenuto! |
| 2 | `it-IT` | `2\|en-GB` | Grazie per il tuo ordine |
| 1 | `fr-FR` | `1\|en-GB` | Bienvenue ! |
| 2 | `fr-FR` | `2\|en-GB` | Merci pour votre commande |

Your master rows are untouched. `Id` is only an example of a key column: the locale column must be in the primary key, the rest of the key is your choice.

**3. Tell Translated what to configure**

Send us:

* which business units to enable, with the name you want shown in the intake manager
* the names of your locale column and parent column, and the value the parent column holds on master rows
* whether email templates should be enabled, per business unit
* optionally, the source and target languages to offer in the order form. If you leave this out, every TranslationOS language is offered.

If one Data Extension is set up differently from the rest, tell us its **external key**, not its name, and what differs: a different locale column, a different parent column, or only some fields to translate.

Until a business unit is configured, its Data Extensions do not appear in the intake manager.

**4. Test the setup**

Browsing the intake manager only reads from Marketing Cloud. Writing happens when a translation is delivered, so permission problems appear only then. Test a full round trip rather than stopping at the browse step.

1. Open the intake manager and open each business unit. Check that the Data Extensions you expect are listed.
2. Place a test order with one master row of a test Data Extension, for one target language.
3. When it is delivered, check in Marketing Cloud that the translated row exists.

Test with a real Data Extension using your normal column structure, not a simplified version.

**5. Optional: enable email templates and previews**

Email templates are shown only for the business units where they are enabled.

When ordering rows, your team can attach an email template and an audience so translators see the email in context. For the preview to work:

1. Build the email so it reads its texts from a non-sendable Data Extension, by language.
2. Add a **profile center link** and the sender's **physical address** to the email.
3. Keep a sendable Data Extension of test recipients as the audience, with at least one row the email can render. The preview uses the first recipient.
4. Make sure the audience has every attribute the email reads, for example `FirstName` or `Language`.

> [!WARNING]
>
> Never use real subscribers as the preview audience.

## Changing the configuration later

Send us the change and it applies immediately, with no deploy or restart.

* **Adding a business unit:** send the same details as for the first one.
* **Removing a business unit:** tell us. Anything of that unit still in translation will fail at delivery.
* **Rotating credentials:** send the new client ID and secret through the secure channel. A delivery that failed because of expired credentials can then be delivered again.
* **Enabling templates, or changing translatable fields or language codes:** tell us the change and which business unit or Data Extension it applies to.

## Support

* General questions: `info-tos@translated.com`
* Technical questions and onboarding: `api@translated.com`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.