Skip to content

Salesforce

BUILDING Source · built and tested, not yet verified against production accounts. Contact us before relying on it.

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.

FeatureSupportedNotes
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.
  1. 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.
  2. 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.
  3. Get a refresh token for the integration user by completing the OAuth web-server flow against the connected app once.
  4. Check the org’s daily API request allowance (Setup → Company Information). Bulk jobs use a few requests per object per sync.

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).

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 typeLands as
anyTypeobject
booleanboolean
checkboxboolean
currencynumber
datestring
datetimestring
doublenumber
emailstring
idstring
intinteger
integerinteger
jsonobject
longinteger
multipickliststring
percentnumber
phonestring
pickliststring
referencestring
stringstring
textareastring
timestring
urlstring

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.

Primary key
Id
Replication
Incremental, on SystemModstamp
ColumnTypeDescription
IdPKstring18-character Salesforce record ID.
SystemModstampcursorstring (datetime)When the record last changed (the sync cursor).
CreatedDatestring (datetime)When the record was created.
IsDeletedbooleanAlways false: deleted records aren't read.
NamestringFull name.
EmailstringEmail.
IsActivebooleanWhether 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).

Primary key
Id
Replication
Incremental, on SystemModstamp
ColumnTypeDescription
IdPKstring18-character Salesforce record ID.
SystemModstampcursorstring (datetime)When the record last changed (the sync cursor).
CreatedDatestring (datetime)When the record was created.
IsDeletedbooleanAlways false: deleted records aren't read.
OwnerId→ User.IdstringUser who owns the record.
NamestringAccount name.
TypestringAccount type.
IndustrystringIndustry.
AnnualRevenuenumberAnnual revenue.
BillingCountrystringBilling country.

Main columns only. Other fields the source returns also land as columns.

Contact

One row per contact.

Primary key
Id
Replication
Incremental, on SystemModstamp
ColumnTypeDescription
IdPKstring18-character Salesforce record ID.
SystemModstampcursorstring (datetime)When the record last changed (the sync cursor).
CreatedDatestring (datetime)When the record was created.
IsDeletedbooleanAlways false: deleted records aren't read.
OwnerId→ User.IdstringUser who owns the record.
AccountId→ Account.IdstringAccount the contact belongs to.
FirstNamestringFirst name.
LastNamestringLast name.
EmailstringEmail.

Main columns only. Other fields the source returns also land as columns.

Lead

One row per lead.

Primary key
Id
Replication
Incremental, on SystemModstamp
ColumnTypeDescription
IdPKstring18-character Salesforce record ID.
SystemModstampcursorstring (datetime)When the record last changed (the sync cursor).
CreatedDatestring (datetime)When the record was created.
IsDeletedbooleanAlways false: deleted records aren't read.
OwnerId→ User.IdstringUser who owns the record.
CompanystringCompany name.
StatusstringLead status.
EmailstringEmail.
IsConvertedbooleanWhether the lead was converted.
ConvertedAccountId→ Account.IdstringAccount created on conversion.
ConvertedContactId→ Contact.IdstringContact created on conversion.

Main columns only. Other fields the source returns also land as columns.

Opportunity

One row per opportunity.

Primary key
Id
Replication
Incremental, on SystemModstamp
ColumnTypeDescription
IdPKstring18-character Salesforce record ID.
SystemModstampcursorstring (datetime)When the record last changed (the sync cursor).
CreatedDatestring (datetime)When the record was created.
IsDeletedbooleanAlways false: deleted records aren't read.
OwnerId→ User.IdstringUser who owns the record.
AccountId→ Account.IdstringAccount the opportunity is with.
NamestringOpportunity name.
StageNamestringSales stage.
AmountnumberAmount.
CloseDatestring (date)Expected close date.
IsWonbooleanWhether it was won.

Main columns only. Other fields the source returns also land as columns.

OpportunityLineItem

One row per product line on an opportunity.

Primary key
Id
Replication
Incremental, on SystemModstamp
ColumnTypeDescription
IdPKstring18-character Salesforce record ID.
SystemModstampcursorstring (datetime)When the record last changed (the sync cursor).
CreatedDatestring (datetime)When the record was created.
IsDeletedbooleanAlways false: deleted records aren't read.
OpportunityId→ Opportunity.IdstringParent opportunity.
Product2IdstringProduct.
QuantitynumberQuantity.
TotalPricenumberTotal price.

Main columns only. Other fields the source returns also land as columns.

Case

One row per support case.

Primary key
Id
Replication
Incremental, on SystemModstamp
ColumnTypeDescription
IdPKstring18-character Salesforce record ID.
SystemModstampcursorstring (datetime)When the record last changed (the sync cursor).
CreatedDatestring (datetime)When the record was created.
IsDeletedbooleanAlways false: deleted records aren't read.
OwnerId→ User.IdstringUser who owns the record.
AccountId→ Account.IdstringRelated account.
ContactId→ Contact.IdstringRelated contact.
StatusstringCase status.
PrioritystringPriority.
SubjectstringSubject.

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.
  • First sync: every record of each selected object.
  • Later syncs: records with SystemModstamp at or after the newest value from the previous sync, upserted on Id. Records at the boundary are re-read and de-duplicated.
  • Objects without SystemModstamp are read in full on every sync.
  • 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 as rate_limited and retries on the next schedule. Narrow objects or 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_seconds are 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.