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

# Sync a motion to a Salesforce Campaign

> Add everyone in a motion to a Salesforce Campaign, and keep each person's campaign status up to date as they move through it.

Turn on Salesforce sync for a motion, and allGood adds everyone in it to a Salesforce Campaign. As people move through the motion, for example from **Registered** to **Attended**, their status on the Campaign changes too. Your sales team and your campaign reports see what happened without anyone updating Salesforce by hand.

**By the end of this guide you'll have:**

* A motion linked to a Salesforce Campaign, either one you already have or one allGood creates
* Campaign member statuses named the way your team wants
* The statuses that count as a response in your Salesforce reports ticked

## Before you start

| What | Why you need it |
| - | - |
| **Salesforce connected to allGood** | If it isn't, the sync can't run. Ask your allGood admin. |
| **A motion** | It can be a draft. You can set up sync before or after you launch. |
| **The Salesforce Campaign**, if you want to use one you already have | If you don't have one, allGood creates it for you. |

## Set up the sync

**1. Open the Salesforce Sync tab**

Go to **Motions** and open your motion. In the menu on the left, select **Salesforce Sync**.

**2. Turn on the sync**

Turn on **Sync this Plan to a Salesforce Campaign**.

![Turn on Sync this Plan to a Salesforce Campaign.](https://mintcdn.com/allgoodtechnologyinc/mhfVnuVbw0s1vivG/images/mk/motions/sync-to-salesforce-campaign/turn-on.png?fit=max\&auto=format\&n=mhfVnuVbw0s1vivG\&q=85\&s=d9be875eb1223121d599caecc4c9a988)

Turn on Sync this Plan to a Salesforce Campaign.

**3. Choose the Campaign**

Under **Campaign**, choose one:

| Option | Use it when |
| - | - |
| **Create one named after this plan** | You don't have a Campaign for this yet. allGood creates it when the motion first syncs. This is selected by default. |
| **Link an existing Campaign** | Your team already made a Campaign for this, for example one your budget or reports are tied to. |

**To have allGood create it,** check the **Name**, **Type** and **Active** settings. The name starts as the motion's name. Change it to match how your team names campaigns.

![Create a Campaign named after the motion, and check its name and type.](https://mintcdn.com/allgoodtechnologyinc/mhfVnuVbw0s1vivG/images/mk/motions/sync-to-salesforce-campaign/create-campaign.png?fit=max\&auto=format\&n=mhfVnuVbw0s1vivG\&q=85\&s=06364cac8202fbeb09182d4b04d54f83)

Create a Campaign named after the motion, and check its name and type.

> [!NOTE]
>
> If a Campaign with that exact name already exists in Salesforce, allGood uses it instead of creating a second one.

**To use one you already have,** select **Link an existing Campaign**, then **Choose a Campaign**.

![Select Link an existing Campaign, then Choose a Campaign.](https://mintcdn.com/allgoodtechnologyinc/mhfVnuVbw0s1vivG/images/mk/motions/sync-to-salesforce-campaign/link-campaign.png?fit=max\&auto=format\&n=mhfVnuVbw0s1vivG\&q=85\&s=2b34cf4ce005932ba52eb34fea5aec8a)

Select Link an existing Campaign, then Choose a Campaign.

Search by the Campaign's name, select it, then select **OK**. You can also paste the Campaign's Salesforce ID or web address.

![Search for your Campaign, select it, then select OK.](https://mintcdn.com/allgoodtechnologyinc/mhfVnuVbw0s1vivG/images/mk/motions/sync-to-salesforce-campaign/choose-campaign.png?fit=max\&auto=format\&n=mhfVnuVbw0s1vivG\&q=85\&s=39f91b5e110106d505e1462b43146f8b)

Search for your Campaign, select it, then select OK.

Each Campaign can be linked to only one motion.

**4. Name the member statuses**

Under **Member statuses**, each row is a stage a person can reach in the motion. Each stage becomes a member status on the Campaign.

* **Label** is the status name people see in Salesforce. It starts as the stage's name. Change it to match your team's names, such as **No Show** instead of **NoShow**.
* **Responded** decides whether people with this status count as responses in Salesforce reports. Tick it for the stages that mean someone took action.

![Rename statuses, and tick the ones that count as a response.](https://mintcdn.com/allgoodtechnologyinc/mhfVnuVbw0s1vivG/images/mk/motions/sync-to-salesforce-campaign/member-statuses.png?fit=max\&auto=format\&n=mhfVnuVbw0s1vivG\&q=85\&s=6a4bb05dc3b87b1486f8e0761f303614)

Rename statuses, and tick the ones that count as a response.

The stages depend on the motion type. For an event, they are:

| Stage | Who's in it | Responded by default |
| - | - | - |
| **Invited** | People who got an invitation | No |
| **Registered** | People who signed up | No |
| **Attended** | People on your check-in list | Yes |
| **NoShow** | People who registered but didn't come | No |
| **HandedOff** | People passed to sales | No |
| **Bounced** | People whose email address didn't work | No |
| **Unsubscribed** | People who unsubscribed | No |

> [!TIP]
>
> Many teams also tick **Registered**, so sign-ups show up as responses before the event happens.

The statuses are added to the Campaign when you publish. Until then, the **In Salesforce** column is empty.

**5. Decide what happens to statuses set in Salesforce**

Sometimes someone in Salesforce changes a person's status by hand, for example a sales rep marking someone as **Attended**. **When a member already has a status in Salesforce** decides whether allGood replaces it.

| Option | What it does |
| - | - |
| **Auto** (default) | Updates the status, but never replaces a responded status with one that isn't. If a rep marked someone **Attended**, allGood won't change them to **No Show**. |
| **Overwrite** | allGood's status always wins. |
| **Skip** | allGood only changes statuses it set itself. Anything set by hand is left alone. |

![Choose what happens when a status was set in Salesforce.](https://mintcdn.com/allgoodtechnologyinc/mhfVnuVbw0s1vivG/images/mk/motions/sync-to-salesforce-campaign/existing-status.png?fit=max\&auto=format\&n=mhfVnuVbw0s1vivG\&q=85\&s=36e6ea39534f78975e6b8dbb1dc4bd80)

Choose what happens when a status was set in Salesforce.

Most teams leave this on **Auto**.

**6. Decide what happens when someone leaves**

**When a member leaves the plan** decides what happens to their Campaign membership.

| Option | What it does |
| - | - |
| **Default** | Removes them if allGood created the Campaign. Keeps them if you linked your own. |
| **Remove** | Takes them off the Campaign. |
| **Keep** | Leaves them on the Campaign with their last status. |

![Choose what happens when someone leaves the motion.](https://mintcdn.com/allgoodtechnologyinc/mhfVnuVbw0s1vivG/images/mk/motions/sync-to-salesforce-campaign/member-leaves.png?fit=max\&auto=format\&n=mhfVnuVbw0s1vivG\&q=85\&s=7dda9aa9d701360c23fccef287e988fb)

Choose what happens when someone leaves the motion.

allGood only ever removes people it added. Anyone your team added to the Campaign stays.

**7. Save your changes**

Select **Save Draft**. Your settings are saved on the motion. Nothing is sent to Salesforce yet.

> [!WARNING]
>
> **Save + Publish** also publishes the motion. Only use it when the motion itself is ready to go live.

## When the sync starts

The sync starts when the motion is published and launched:

1. allGood creates the Campaign, or finds the one you linked.
2. It adds your member statuses to the Campaign.
3. As people enter the motion and move through it, it adds them to the Campaign and updates their status. This happens within minutes, not overnight.

Only Leads and Contacts can be on a Campaign. allGood finds each person's Lead or Contact in Salesforce by email, and never creates a second one for someone who's already there. For people who aren't in Salesforce yet, whether allGood creates a Lead depends on how your account is set up. Ask your MOps team.

## Check that it's working

After launch, the top of the **Salesforce Sync** tab shows:

* **Campaign:** the Campaign the motion syncs to, and whether allGood created it or you linked it
* **Members in Salesforce:** how many people are on the Campaign
* **Failed, last 7 days:** how many updates Salesforce rejected

At the bottom, **Recent problems** lists updates from the last 7 days that failed, were skipped, or where allGood kept the status someone set in Salesforce. If something keeps failing, send the list to [support@allgoodhq.com](mailto:support@allgoodhq.com).

You can also open the Campaign in Salesforce and look at its members.

## Good to know

* **You can change the settings after launch.** Edit them, then publish the motion again. The new labels and options apply from then on.
* **One Campaign per motion,** and one motion per Campaign.
* **Campaign fields** under the Campaign settings let you fill in other Campaign fields, such as a description. When allGood links a Campaign you already have, it only fills fields that are empty.
* **Member fields** copy extra details onto each campaign member. Ask your MOps team or allGood if you need them.

## Related articles

* [Set up a local event](https://docs.allgoodhq.com/mk/motions/set-up-local-event.md)
* [Set up a webinar motion](https://docs.allgoodhq.com/mk/motions/set-up-webinar.md)
* [Set up a demo request form](https://docs.allgoodhq.com/mk/motions/set-up-demo-request.md)
* [Launching a motion](https://docs.allgoodhq.com/mk/motions/launching.md)

> [!NOTE]
>
> Questions? Reach out to [support@allgoodhq.com](mailto:support@allgoodhq.com).


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