# Salesforce CRM

Source: https://yamm.com/help/usage/crm-integrations/salesforce-crm/

YAMM integrates with Salesforce in two complementary ways: import contacts from Salesforce into your contact list spreadsheet to run a mail merge, and log YAMM campaigns back into Salesforce so all conversations appear in each lead's profile.

## Import contacts from Salesforce CRM

[Awesome Table Connectors](https://awesome-table.com/connectors/help/about) lets you import Salesforce data, including your contacts.

**Prerequisites**

- You have a Salesforce account.
- You have [installed](https://awesome-table.com/connectors/help/get-started/install) and [launched](https://awesome-table.com/connectors/help/get-started/launch) Awesome Table Connectors.

1. In the Awesome Table add-on **Home** screen, click **Create new request**.

   ![Launch empty home screen](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/how-to-import-contacts-from-salesforce-crm-1.png)

2. Open the **Salesforce** connector.

   ![Awesome table connector select Salesforce](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/how-to-import-contacts-from-salesforce-crm-2.png)

3. On the **Connect to Salesforce** screen, click **Sign in with Salesforce**.

4. Enter your Salesforce username and password and click **Log In**.

   ![Salesforce login page enter credentials](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/how-to-import-contacts-from-salesforce-crm-3.png)

5. Open the **Select data** drop-down and select **List records**.

   ![Salesforce list records](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/how-to-import-contacts-from-salesforce-crm-4.png)

6. Open the **Salesforce object** drop-down and select **Contact**.

   ![Salesforce select contact](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/how-to-import-contacts-from-salesforce-crm-5.png)

7. (Optional) Use [Preview & Select columns](https://awesome-table.com/connectors/help/preview-select-columns/how-to) to choose the columns you need.

8. Click **Run** to start your request.

Your contacts are imported into your Google spreadsheet, ready for YAMM.

![Result Salesforce](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/how-to-import-contacts-from-salesforce-crm-6.png)

## Log YAMM campaigns into Salesforce

Salesforce lets you log Gmail campaigns into your Salesforce account so all conversations with prospects or clients appear in their lead profile.

### 1. Enable 'Email to Salesforce'

Click the top-right corner icon > **Setup**.

![Setup in the Salesforce top-right corner menu](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-1.png)

In the left sidebar, click **Email** > **Email to Salesforce**.

![Email to Salesforce under Email in the Salesforce sidebar](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-2.png)

Click **Edit** > select **Active**.

![Active option selected when editing Email to Salesforce](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-3.png)

Click **Save**. A **Send Notification Email to Users** pop-up appears.

![Send Notification Email to Users pop-up shown after saving](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-4.png)

If other users from your company are registered with your Salesforce account, click **Send Notification Email**; otherwise click **Skip This Step**.

### 2. Log out and log back in

Salesforce doesn't refresh settings instantly — log out, then log back in to update your settings menu.

![Logging out of Salesforce to refresh the settings menu](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-5.png)

![Logging back in to Salesforce to refresh the settings menu](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-6.png)

### 3. Locate the 'Email' menu option

![Email menu option in the Salesforce settings](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-7.png)

In the left menu, click **Email** > **My Email to Salesforce**.

![My Email to Salesforce under Email in the Salesforce menu](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-8.png)

Your Email to Salesforce address appears in the yellow box.

Info: This is the unique email address you'll add as a bcc recipient in your spreadsheet.

In **My Acceptable Email Addresses**, enter every address you use to email leads and contacts, separated by commas. Only emails from these addresses are added to the activity history of related records.

![My Acceptable Email Addresses field with comma-separated addresses](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-9.png)

Choose your Email Associations settings and click **Save**.

![Email Associations settings, with the Save button](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-10.png)

### 4. Configure your contact list spreadsheet

List all your recipients (or [import them from Salesforce](#import-contacts-from-salesforce-crm)). Paste the Email to Salesforce address under a `bcc` column.

![Contact list spreadsheet with the Email to Salesforce address in a bcc column](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-11.png)

Info: Learn more: [Reach multiple recipients per row](https://yamm.com/help/usage/create-campaign/build-contact-list/index.md#reach-multiple-recipients-per-row).

### 5. Start your mail merge with YAMM

Run YAMM: **Extensions** > **Yet Another Mail Merge: Mail Merge for Gmail** > **Start Mail Merge**.

![Start Mail Merge in the Yet Another Mail Merge submenu](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-12.png)

### 6. Check the email logs in Salesforce

If a recipient matches a Salesforce lead or contact, the email appears in their profile under **Activity**.

![Salesforce lead profile showing the email under Activity](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-13.png)

If not, find the emails under **Settings** > **Email** > **My Unresolved Item** > **Emails**.

![My Unresolved Item Emails under Settings and Email in Salesforce](https://yamm.com/help/images/docs/usage/crm-integrations/salesforce-crm/integrating-salesforce-crm-with-gmail-email-campaigns-14.png)

Warning: It can take a few minutes to record all your emails. If you don't see them, wait a bit longer.
