---
title: "Linking Salesforce as a source"
source: PostHog Documentation
source_url: https://github.com/PostHog/posthog.com
licence: MIT
domain: data-and-analysis
subdomain: posthog-docs
date_added: 2026-04-25
---

The Salesforce connector syncs your Salesforce data to PostHog. The following objects are supported:

| Object | Description |
|---|---|
| Account | Companies and organizations |
| Campaign | Marketing campaigns |
| Contact | Individual contacts |
| Event | Calendar events |
| Lead | Sales leads |
| Opportunity | Sales opportunities |
| OpportunityHistory | Historical changes to opportunities |
| Order | Orders |
| Pricebook2 | Price books |
| PricebookEntry | Price book entries |
| Product2 | Products |
| Task | Tasks and to-dos |
| User | Salesforce users |
| UserRole | User roles |

To link Salesforce:

1. Go to the [Data pipeline page](https://app.posthog.com/data-management/sources) and the sources tab in PostHog
2. Click **Link Source** and select Salesforce
3. Log in to your Salesforce account and authorize PostHog to access your data
4. Select the objects you want to sync from the table above
5. *Optional:* Add a prefix to your table names
6. Click **Next**

The data warehouse then starts syncing your Salesforce data. You can see details and progress in the [data pipeline sources tab](https://app.posthog.com/data-management/sources).
