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

# Set up the Salesforce integration

> Install GetSales Sync in a Salesforce org, connect it to GetSales, choose what syncs, send leads and contacts from your tables, read campaigns and list views into tables, and disconnect or uninstall.

The Salesforce integration keeps a Salesforce org and your GetSales workspace in step:

* **Campaigns and list views become table sources.** A campaign's members, or a lead or contact list view, fill a table, stay in sync on a schedule, and bring the fields you choose as columns of their own.
* **Leads and contacts go to Salesforce.** A Send to CRM column finds the lead or contact for every row, or creates a lead, with the fields you map.
* **Outreach lands on the record.** LinkedIn messages and connection requests, emails and AI SDR hand-offs are logged as completed tasks on the lead or contact, with their words, on the day they happened.
* **A status moves with the conversation.** A picklist of yours moves forward as a request is sent, accepted, a message goes out or the lead replies, and the AI SDR's class of a reply can land on a picklist too.

## Before you start

* A GetSales workspace, and a role that can manage integrations in it.
* A Salesforce org with API access: Enterprise, Unlimited, Performance or Developer Edition, or Professional Edition with the API add-on.
* A Salesforce user with the **API Enabled** permission to connect with. GetSales acts as that user, so it sees and writes what that user may.
* An admin of the org to install the **GetSales Sync** package once (below).
* To find people by their LinkedIn profile: a field on Lead and on Contact that holds the LinkedIn link, such as a URL field named LinkedIn. Salesforce has no LinkedIn field of its own.

## Install GetSales Sync in your org (an admin, once)

Salesforce lets an app connect to an org only after the org installs it. GetSales Sync is a free managed package that holds nothing but the app GetSales connects through: no objects, no fields, no code.

1. An admin of the org opens the install link: [https://login.salesforce.com/packaging/installPackage.apexp?p0=04tg7000000laXt](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tg7000000laXt). For a sandbox, replace `login` with `test` in the link.
2. Choose **Install for All Users** (or for admins only, then give access as in step 4). Until GetSales Sync passes Salesforce's security review for AppExchange, the page notes that it installs a Non-Salesforce Application not authorized for distribution as part of Salesforce's AppExchange Partner Program: tick **I acknowledge...** under that note, then click **Install**.
3. In Setup, search for **External Client App Manager**, open **GetSales Sync**, then **Policies**. Under **OAuth Policies**, **Permitted Users**, keep **All users can self-authorize**, so any user with API access can connect.
4. If your org lets only approved users authorize apps, set **Permitted Users** to **Admin approved users are pre-authorized** and add the profiles or permission sets of the users who will connect.

## Connect a Salesforce org

1. Open [https://app.getsales.io/settings/integrations](https://app.getsales.io/settings/integrations) and pick **Salesforce**.
2. Click **Connect org** (or **Connect sandbox** for a sandbox, **Connect another org** when one is already connected).
3. Sign in to Salesforce if asked, check the access GetSales asks for (listed below) and click **Allow**.
4. Salesforce sends you back to GetSales, and the org appears under **Orgs** with the status **On**.

Connect within 15 minutes of clicking Connect org. A link that waited longer is refused, and you start again from step 2.

Each GetSales workspace connects with its own authorization: two workspaces can connect the same org, and deleting one connection leaves the other.

### What GetSales can access

| Access | Why GetSales asks for it |
| - | - |
| Manage user data via APIs (`api`) | Finds the lead or contact for a lead, creates or updates leads, contacts and accounts, logs tasks on them, and reads your fields, campaigns and list views. |
| Perform requests at any time (`refresh_token`) | Keeps the connection working while nobody is signed in to GetSales, so syncs run on their own. |
| Access the identity URL service | Salesforce lists it on the consent screen beside the two above. GetSales reads only the org and user ids that come back with the access, and makes no call to that service. |

## Choose what syncs

### Activity on the record

Under **Activity sync** on the Salesforce card in Settings, each switch starts logging from the moment it is turned on. Nothing that happened before is written.

* **Log messages to the timeline**: LinkedIn messages your sender profiles send and receive, with their words.
* **Log emails to the timeline**: emails sent and received, each with its subject and words. Leave it off when your team already logs its mailboxes into Salesforce, so an email is not there twice.
* **Log connection requests**: a connection request sent, with its note, and its accept.
* **Log AI SDR hand-offs**: a hand-off from the AI SDR lands as a task on the record, when GetSales already knows the lead's record from an earlier message or request, a Send to CRM column or a campaign or list view. A hand-off of a lead with no known record is skipped.

Each event is a completed task on the lead or contact: its subject says who wrote to whom, its comments hold the words, and its date is the day the event happened. What a sender profile sends lands as it goes out. A lead's message, or one typed in LinkedIn itself, lands once the sender profile's LinkedIn account has read it, on its schedule inside the profile's sync hours. Each is dated by its own day. Where the org's task types include LinkedIn, a LinkedIn event is a LinkedIn task. The task belongs to the user who connected the org. A lead is matched the same way as in Send to CRM below; an event of a lead who matches no record is not written, and it shows under **Recent failures**. When a record is merged in Salesforce, the lead's next events land on the record Salesforce kept.

### Status and dates

Click **Set up** next to **Status and dates** on the Salesforce card (the button reads **Edit** once something is mapped):

* **Status field**: a picklist that follows the conversation. Each field shows where it lives: on Lead and Contact, on Lead only, or on Contact only. For each event (connection request sent, connection accepted, message sent, replied) pick the value it sets, or leave it as is.
* One field name serves leads and contacts. To move both, keep a picklist with the same API name on Lead and on Contact, such as Outreach Status. The lead's own **Lead Status** moves leads only, and contacts stay as they are.
* The status only moves forward, in the order of the events. A value someone set by hand that is not one of the mapped values stays. On a multi-select picklist, only the values you mapped move, and every other value stays. **Also replace** lists the values GetSales may replace, such as New.
* **Date goes to**: a Date field takes the day of each event, a Date/Time field its moment.
* **Reply class field**: a picklist that takes the AI SDR's class of a lead's reply (interested, meeting request, not now and the others), each class mapped to a value of yours.
* **LinkedIn link**: the field where your org keeps a person's LinkedIn profile, so a lead can be found by it. When none is chosen, GetSales searches each lead and contact in its own custom field whose name or label contains LinkedIn, a URL field first. A field of another app (such as LinkedIn Sales Navigator's member token) or one that holds a company page never counts, and when two fields could hold the link, none is searched until you pick yours here.

### Send leads and contacts to Salesforce

Add a **Send to CRM** column to a table and pick the Salesforce org under **Send to**:

* **Matching**: a person is found by the Salesforce lead or contact id they already hold, then by their LinkedIn profile in your LinkedIn field, then by their work email or personal email. A contact is preferred to a lead on every step, a converted lead is its contact, and a record merged into another is the one Salesforce kept. When none of these finds one, a new lead is created from the row's name and company, with the LinkedIn link written into the lead's LinkedIn field.
* **Field mapping**: each field you add gets its value from the row, written per row. Type `/` in a value to insert a column of the table. Only mapped fields are written. A field the matched record does not have (a lead's Company on a contact) is left out of that write. For a picklist, write the value as Salesforce names it.
* **Send new rows**: when on, every row that lands in the table is sent as it arrives. When another column of the row is still filling its name or email, such as an enrichment, the send waits for it.

Run the column on the rows you choose to send them at once. The cell shows the Salesforce record it wrote, or why Salesforce refused it.

### Read a campaign or a list view into a table

In a table, open **Data sources** and choose **CRM segment**:

1. Pick the Salesforce org and type to find a campaign, or a lead or contact list view, by name. A campaign is a list you add people to and take them out of; a list view is a filter you keep in Salesforce. To read a report, add its rows to a campaign with the report's **Add to Campaign** button.
2. Under **LinkedIn field**, keep it empty to read each record's own LinkedIn field, or pick the field that holds the link.
3. Under **Sync**, choose every hour, every day or every week. A person added to the campaign, or one who starts matching the view, is added to the table. A person taken out of the campaign, or one who stops matching the view, leaves the table's campaigns. A converted lead stays in a campaign as its contact.
4. Under **Columns from Salesforce**, add up to 25 fields, each with a column name of your own. Name, email, company, title and the LinkedIn link always come. A mapped field's value wins over enrichment and follows Salesforce on every sync.

**Sync now** reads the campaign or the view at once.

## Use it

* **Automated:** rows are sent as they arrive when Send new rows is on, activity is logged as it happens, statuses and dates move with each event, and campaigns and views sync on their schedule.
* **Manual:** run a Send to CRM column on chosen rows, or click Sync now on a campaign or view source.
* **See what happened:** a lead's card shows a **CRM** section with the Salesforce record the lead was matched to, how it was found, and the lead's recent Salesforce calls with each failure's reason. The Salesforce card in Settings lists the org's recent failures.

## Salesforce's API limits

Every integration and user of a Salesforce org shares one daily pool of API requests, counted over a rolling 24 hours: 15,000 for a Developer Edition org, 100,000 plus 1,000 per Salesforce license for Enterprise Edition. GetSales reads where the pool stands on every answer. Once the org has used 90% of it, GetSales pauses its own calls to that org for an hour, so the rest stays for your other tools, and then picks up where it stopped: nothing is lost and nothing is written twice. A Send to CRM cell that meets the pause fails with Rate limit reached: run the rows with errors again an hour later. A task costs one request (two for a lead), a status and date write two, a lead's first match up to five.

## Disconnect

On the Salesforce card in [https://app.getsales.io/settings/integrations](https://app.getsales.io/settings/integrations), open the org's actions and click **Delete**:

* Every sync of that org stops: no more rows sent, activity logged or campaigns and views read.
* GetSales revokes its access at Salesforce and deletes its copy. Other workspaces connected to the same org keep theirs.
* What is already written stays: leads, contacts, accounts and tasks in Salesforce, and people, rows and column values in GetSales.
* Connecting the same account again after a Delete makes a new connection with no settings: turn its switches on and set Status and dates again, pick it in each Send to CRM column, and create its sources again. A source of the deleted connection stops as Failed and keeps its people.

## Uninstall from Salesforce

In Setup, search for **Installed Packages**, find **GetSales Sync** and click **Uninstall**. Uninstalling removes the app for the whole org: every GetSales connection to it stops working. Its calls are refused and listed under **Recent failures**, a campaign or list view source stops, and after five refused calls in a row the org reads **Failed**. Records already written in Salesforce and data already in GetSales stay.

To come back, install GetSales Sync again and click **Connect another org** with the same org: it returns with its settings. Resume a stopped source from its menu (**Resume import**).

## Troubleshooting

* **"A Salesforce lead needs a company"**: the row matched no record and has no company to create a lead with. Map Company in the column, fill the row's company, or create the person as a contact.
* **Leads are not found by their LinkedIn profile**: keep the LinkedIn link in a URL or text field on Lead and on Contact (a long text area cannot be searched), or pick your field under **Status and dates**, **LinkedIn link**. Pick it there too when your org has two LinkedIn fields.
* **A campaign source stopped as Failed** ("The CRM refused the list: it was deleted or is not a list of contacts. Pick it again in a new source."): the campaign was deleted, or the connected user can no longer see it. Nobody is taken out of the table for it. Make the campaign visible to that user again and click **Resume import**, or create a new source on another campaign.
* **Salesforce refuses the connection**: the org has not installed GetSales Sync, your user is not permitted to use it, or your user has no API access. Ask an admin to check the steps under Install GetSales Sync.
* **The connect or later calls fail for a user whose profile limits login IP ranges**: Salesforce holds GetSales Sync to the same ranges by default. In External Client App Manager, open **GetSales Sync**, then **Policies**, and set **IP Relaxation** to **Relax IP restrictions**, or ask [support@getsales.io](mailto:support@getsales.io) for the addresses GetSales calls from and add them to the profile's ranges.
* **The org reads Failed, or calls are refused**: Salesforce refused its access, often after an admin revoked it or uninstalled GetSales Sync, the user was deactivated, or the connection made no call for 30 days. Install the package again if it was uninstalled, then click **Connect another org** with the same org: it comes back with its settings.
* **A field is left out of a write**: the record is a lead and the field lives on contacts only, or the other way round. Keep the field on both objects to write it everywhere.
* **Calls wait an hour**: the org's daily API pool is past 90%, often from other tools on the same org. Salesforce admins see the usage in Setup under System Overview.

Questions: [support@getsales.io](mailto:support@getsales.io).


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