# Salesforce Marketing Cloud Integration Guide

### **Using personalization strings in Salesforce Marketing Cloud**

In Salesforce Marketing Cloud (SFMC), personalization strings let you insert subscriber attributes (like first name, email, or custom fields) into your messages. To use them in Blings:

1. Open any **email** in Content Builder or Email Studio.
2. Click to edit a text block.
3. In the toolbar, click **Personalization → Insert Attribute** (sometimes shown as *Insert → Personalization String*).  &#x20;

   <figure><img src="https://278917132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxrxyfzbizileAzehkkZ5%2Fuploads%2FJoZCKJvh4ZdqtXt35tnc%2Fimage.png?alt=media&#x26;token=f48121b5-bee4-4e26-a262-aefbf723a27e" alt=""><figcaption></figcaption></figure>
4. Select the attribute you want (e.g. First Name).
5. The token will appear inline as a token. For examples: First Name → `%%FirstName%%`
6. Copy the token and paste it into the relevant variable field in the Blings **Connect** page.

For more details, see [Salesforce’s guide](https://www.salesforce.com/eu/marketing/email/personalization/)&#x20;

### Using Merge Fields in Salesforce CPQ

In Salesforce CPQ, your template content can store fields that show field values from different objects. These merge fields are automatically updated in your content when the referenced field is updated on the other object. This process is useful if you want template content to reflect changes made elsewhere in your org.

<div align="left" data-with-frame="true"><figure><img src="https://278917132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxrxyfzbizileAzehkkZ5%2Fuploads%2FRhJCdMnKKW8InXwSGKKp%2Fimage.png?alt=media&#x26;token=dcbb5216-376c-4689-b209-aeb6495b2740" alt=""><figcaption></figcaption></figure></div>

1. In the toolbar, click "Insert Merge Field."&#x20;
2. In the Merge Field window, select the relevant Merge Field and insert it into your email.&#x20;

<figure><img src="https://278917132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxrxyfzbizileAzehkkZ5%2Fuploads%2FPkOkZx1WdB8xl6n9Go80%2Fimage%20(1).png?alt=media&#x26;token=a577aa56-2529-4d0c-a848-5a6012f4a4e7" alt=""><figcaption></figcaption></figure>

<details>

<summary>Troubleshooting</summary>

| Issue                 | Fix                                                 |
| --------------------- | --------------------------------------------------- |
| Broken link in test   | Ensure DE column names match personalization string |
| Extra `&amp;` encoded | Use *HTML Paste* block not *Text*                   |

</details>

**Official Resources:**

* [SFMC: Personalization Strings](https://help.salesforce.com/articleView?id=mc_es_personalization_strings.htm)
* [SFMC: AMPScript Syntax & Functions](https://developer.salesforce.com/docs/atlas.en-us.mc-programmatic-content.meta/mc-programmatic-content/ampscript_syntax_and_functions.htm)
* [SCPQ: Merge Fields](https://help.salesforce.com/s/articleView?id=sales.cpq_merge_fields.htm\&type=5)
* [SFMC: Personalizing Merge Fields](https://help.salesforce.com/s/articleView?id=mktg.mktg_content_personalization_merge_fields.htm\&type=5)
