Salesforce
BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.
Overview
Section titled “Overview”PortPilot replicates Salesforce objects (standard and custom) using Salesforce’s Bulk API 2.0, which runs each query as an asynchronous job and returns results in large pages. It’s the Salesforce-recommended way to read large volumes and uses far fewer API requests than record-by-record reads. After the first sync, only records changed since the last sync are read.
Features
Section titled “Features”| Feature | Supported | Notes |
|---|---|---|
| Incremental sync | Yes | On SystemModstamp; objects without it are re-read every sync. |
| Captures deletes | No | Records deleted in the source stay in the destination. |
| Custom fields | Yes | Custom objects (__c) and fields land like standard ones. |
| Table selection | Yes | Choose which tables to sync. |
| New columns added automatically | Yes | Columns that appear in the source are added to the destination table. |
| Re-sync | Yes | A full refresh re-reads every selected table. |
Before you connect
Section titled “Before you connect”- Use a dedicated integration user (recommended) with the API Enabled permission and read access to every object and field you want to replicate. PortPilot only sees what this user can see, including field-level security.
- Create a connected app in Setup with OAuth enabled and the scopes Manage user data via
APIs (
api) and Perform requests at any time (refresh_token,offline_access). Note its consumer key and consumer secret. - Get a refresh token for the integration user by completing the OAuth web-server flow against the connected app once.
- Check the org’s daily API request allowance (Setup → Company Information). Bulk jobs use a few requests per object per sync.
Connect
Section titled “Connect”In the app, go to Connectors → New connector → Salesforce, fill in the fields below and click Test connection. A passing test lists every object the user can query.
| Field | Required | Default | Description |
|---|---|---|---|
instance_url |
Yes | — | Your org’s URL, e.g. https://myorg.my.salesforce.com. |
client_id |
Yes | — | Connected app consumer key. |
client_secret |
Yes | — | Connected app consumer secret. Stored write-only in the data plane’s secret store. |
refresh_token |
Yes | — | OAuth refresh token for the integration user. Stored write-only. |
api_version |
No | 68.0 |
Salesforce API version. Change only if your org requires an older one. |
objects |
No | all queryable | Object API names to replicate, e.g. ["Account", "Contact", "Opportunity", "Invoice__c"]. |
poll_timeout_seconds |
No | 21600 |
Abort a Bulk API job that hasn’t finished after this many seconds (6 hours). |
Schema
Section titled “Schema”Every object the integration user can query is available, with every field it can read. The tables below are common standard objects; your org's custom objects and fields appear alongside them.
Type mapping (22 source types)
| Source type | Lands as |
|---|---|
anyType | object |
boolean | boolean |
checkbox | boolean |
currency | number |
date | string |
datetime | string |
double | number |
email | string |
id | string |
int | integer |
integer | integer |
json | object |
long | integer |
multipicklist | string |
percent | number |
phone | string |
picklist | string |
reference | string |
string | string |
textarea | string |
time | string |
url | string |
Any type not listed lands as a string.
How the tables relate. Each arrow points from a column to the table it references. Only key, reference and cursor columns are shown; the data dictionary below has the rest.
erDiagram
User ||--o{ Account : "OwnerId"
User ||--o{ Contact : "OwnerId"
Account ||--o{ Contact : "AccountId"
User ||--o{ Lead : "OwnerId"
Account ||--o{ Lead : "ConvertedAccountId"
Contact ||--o{ Lead : "ConvertedContactId"
User ||--o{ Opportunity : "OwnerId"
Account ||--o{ Opportunity : "AccountId"
Opportunity ||--o{ OpportunityLineItem : "OpportunityId"
User ||--o{ Case : "OwnerId"
Account ||--o{ Case : "AccountId"
Contact ||--o{ Case : "ContactId"
User {
string Id PK
string SystemModstamp "cursor"
}
Account {
string Id PK
string SystemModstamp "cursor"
string OwnerId FK
}
Contact {
string Id PK
string SystemModstamp "cursor"
string OwnerId FK
string AccountId FK
}
Lead {
string Id PK
string SystemModstamp "cursor"
string OwnerId FK
string ConvertedAccountId FK
string ConvertedContactId FK
}
Opportunity {
string Id PK
string SystemModstamp "cursor"
string OwnerId FK
string AccountId FK
}
OpportunityLineItem {
string Id PK
string SystemModstamp "cursor"
string OpportunityId FK
}
Case {
string Id PK
string SystemModstamp "cursor"
string OwnerId FK
string AccountId FK
string ContactId FK
}
User
One row per Salesforce user.
| Column | Type | Description |
|---|---|---|
IdPK | string | 18-character Salesforce record ID. |
SystemModstampcursor | string (datetime) | When the record last changed (the sync cursor). |
CreatedDate | string (datetime) | When the record was created. |
IsDeleted | boolean | Always false: deleted records aren't read. |
Name | string | Full name. |
Email | string | Email. |
IsActive | boolean | Whether the user can log in. |
Main columns only. Other fields the source returns also land as columns.
Account
One row per account (company or person account).
| Column | Type | Description |
|---|---|---|
IdPK | string | 18-character Salesforce record ID. |
SystemModstampcursor | string (datetime) | When the record last changed (the sync cursor). |
CreatedDate | string (datetime) | When the record was created. |
IsDeleted | boolean | Always false: deleted records aren't read. |
OwnerId→ User.Id | string | User who owns the record. |
Name | string | Account name. |
Type | string | Account type. |
Industry | string | Industry. |
AnnualRevenue | number | Annual revenue. |
BillingCountry | string | Billing country. |
Main columns only. Other fields the source returns also land as columns.
Contact
One row per contact.
| Column | Type | Description |
|---|---|---|
IdPK | string | 18-character Salesforce record ID. |
SystemModstampcursor | string (datetime) | When the record last changed (the sync cursor). |
CreatedDate | string (datetime) | When the record was created. |
IsDeleted | boolean | Always false: deleted records aren't read. |
OwnerId→ User.Id | string | User who owns the record. |
AccountId→ Account.Id | string | Account the contact belongs to. |
FirstName | string | First name. |
LastName | string | Last name. |
Email | string | Email. |
Main columns only. Other fields the source returns also land as columns.
Lead
One row per lead.
| Column | Type | Description |
|---|---|---|
IdPK | string | 18-character Salesforce record ID. |
SystemModstampcursor | string (datetime) | When the record last changed (the sync cursor). |
CreatedDate | string (datetime) | When the record was created. |
IsDeleted | boolean | Always false: deleted records aren't read. |
OwnerId→ User.Id | string | User who owns the record. |
Company | string | Company name. |
Status | string | Lead status. |
Email | string | Email. |
IsConverted | boolean | Whether the lead was converted. |
ConvertedAccountId→ Account.Id | string | Account created on conversion. |
ConvertedContactId→ Contact.Id | string | Contact created on conversion. |
Main columns only. Other fields the source returns also land as columns.
Opportunity
One row per opportunity.
| Column | Type | Description |
|---|---|---|
IdPK | string | 18-character Salesforce record ID. |
SystemModstampcursor | string (datetime) | When the record last changed (the sync cursor). |
CreatedDate | string (datetime) | When the record was created. |
IsDeleted | boolean | Always false: deleted records aren't read. |
OwnerId→ User.Id | string | User who owns the record. |
AccountId→ Account.Id | string | Account the opportunity is with. |
Name | string | Opportunity name. |
StageName | string | Sales stage. |
Amount | number | Amount. |
CloseDate | string (date) | Expected close date. |
IsWon | boolean | Whether it was won. |
Main columns only. Other fields the source returns also land as columns.
OpportunityLineItem
One row per product line on an opportunity.
| Column | Type | Description |
|---|---|---|
IdPK | string | 18-character Salesforce record ID. |
SystemModstampcursor | string (datetime) | When the record last changed (the sync cursor). |
CreatedDate | string (datetime) | When the record was created. |
IsDeleted | boolean | Always false: deleted records aren't read. |
OpportunityId→ Opportunity.Id | string | Parent opportunity. |
Product2Id | string | Product. |
Quantity | number | Quantity. |
TotalPrice | number | Total price. |
Main columns only. Other fields the source returns also land as columns.
Case
One row per support case.
| Column | Type | Description |
|---|---|---|
IdPK | string | 18-character Salesforce record ID. |
SystemModstampcursor | string (datetime) | When the record last changed (the sync cursor). |
CreatedDate | string (datetime) | When the record was created. |
IsDeleted | boolean | Always false: deleted records aren't read. |
OwnerId→ User.Id | string | User who owns the record. |
AccountId→ Account.Id | string | Related account. |
ContactId→ Contact.Id | string | Related contact. |
Status | string | Case status. |
Priority | string | Priority. |
Subject | string | Subject. |
Main columns only. Other fields the source returns also land as columns.
- Compound fields (addresses such as
BillingAddress, geolocations) can’t be read by the Bulk API, so they’re skipped. Their component fields (BillingStreet,BillingCity, …) are included. - Each sync re-reads object metadata, so new fields are added as new columns.
Sync behavior
Section titled “Sync behavior”- First sync: every record of each selected object.
- Later syncs: records with
SystemModstampat or after the newest value from the previous sync, upserted onId. Records at the boundary are re-read and de-duplicated. - Objects without
SystemModstampare read in full on every sync.
Common gotchas
Section titled “Common gotchas”- Deletes aren’t replicated. Deleted records stay in the destination. Records in the Recycle Bin aren’t read.
- API request limit. If the org runs out of daily API requests (
REQUEST_LIMIT_EXCEEDED), the run fails asrate_limitedand retries on the next schedule. Narrowobjectsor reduce sync frequency if you’re close to the limit. - Fields hidden by field-level security are skipped without an error. If a column is missing, check the integration user’s profile or permission sets.
- Syncing all objects is slow. Without
objects, PortPilot runs a bulk job for every queryable object, including many you won’t use. List the objects you need. - Long jobs. Large objects can take a long time in Salesforce’s queue. Jobs still running
after
poll_timeout_secondsare aborted in your org and the run fails. - Changed field types (for example text to number) can fail a load into a column created with the old type. Removed fields keep their old column.