Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Salesforce

Salesforce batch source. Extracts standard and custom CRM objects; selected high-change objects (accounts, opportunities) support automatic incremental loading via Salesforce modification timestamps.

Salesforce is the cloud CRM platform for sales, service, marketing, and analytics. Nilus uses Salesforce as a batch source to extract standard and custom objects, accounts, opportunities, contacts, leads, custom objects, into a downstream warehouse for sales and revenue analytics.

Under the hood, Nilus authenticates against the Salesforce REST API using username/password plus a security token. Standard objects load in replace mode; a few objects (opportunity, account, etc.) support automatic incremental loading via Salesforce's SystemModstamp / LastModifiedDate.

Requirements

Connectivity and credentials must both be in place before the pipeline can run.

Connectivity

  • The Nilus runtime must be able to reach https://<your-domain>.my.salesforce.com over HTTPS.

  • The Salesforce user must be granted API access (Profile → Administrative Permissions → API Enabled) and read access on every object in source_table.

  • Security tokens are required when logging in from outside trusted IP ranges. Reset the token if the password changes.

Salesforce credentials grant read access to your CRM. Project all four parameters (username, password, token, domain) from a Nilus instance secret rather than embedding them in YAML.

Required parameters

Parameter
Required
Default
Description

username

Yes

-

Salesforce account username (typically an email).

password

Yes

-

Salesforce account password.

token

Yes

-

Salesforce security token. Reset/copy from Setup → My Personal Information → Reset My Security Token.

domain

Yes

-

Salesforce instance domain (e.g. my-org.my, used as <domain>.salesforce.com). Use test for sandboxes.

URI format

Supported objects

Object
Merge key
Strategy
Description

user

-

replace

Users with access to the org.

user_role

-

replace

Role definitions and hierarchy.

contact

-

replace

Contact records associated with accounts.

lead

-

replace

Lead records.

campaign

-

replace

Campaign records.

product

-

replace

Product catalog (Product2).

pricebook

-

replace

Price book definitions (Pricebook2).

opportunity

SystemModstamp

merge

Sales opportunities. Incremental.

opportunity_line_item

SystemModstamp

merge

Products on opportunities. Incremental.

opportunity_contact_role

SystemModstamp

merge

Contact roles on opportunities. Incremental.

account

LastModifiedDate

merge

Customer/organization accounts. Incremental.

campaign_member

SystemModstamp

merge

Contacts/leads associated with campaigns. Incremental.

custom:<custom_object_name>

-

replace

Custom Salesforce objects. Pass the API name (e.g. custom:My_Object__c).

Field handling

  • All available fields are retrieved automatically.

  • Compound fields are excluded by Salesforce (except for Name).

  • System fields (SystemModstamp, LastModifiedDate) are always included and used for incremental tracking.

  • Do not set incremental_key, Nilus picks the right one per object.

Example: DataOS secret

Source options

Option
Required
Description

source_table

Yes

One of the resources in the supported objects table.

incremental_key

No

Not used. Nilus manages refresh cadence per resource internally.

Sink options

Option
Required
Description

dest_table

Yes

Destination table name. Use one stable target per source resource so re-runs merge cleanly.

incremental_strategy

Yes

Destination write behavior. Use merge for time-aware resources, replace for snapshot-style resources.

Sample Nilus config

Behavior and capabilities

  • Pipeline type: Salesforce runs as a batch source.

  • Object selection: set source.options.source_table to one standard object, custom object, or supported Salesforce resource from the supported objects table.

  • Fetch semantics: most objects load as full snapshots with replace; selected high-change CRM objects use Salesforce modification timestamps and should write with merge.

  • Field handling: Nilus retrieves available fields automatically, excludes unsupported compound fields, and preserves Salesforce system fields needed for incremental tracking.

  • Custom objects: use custom:<api_name> with the Salesforce API name, including the __c suffix.

Troubleshooting

Symptom
Likely cause
Resolution

INVALID_LOGIN

Wrong username, password, token, or domain. Token resets when the password changes.

Reset the security token, update the secret, and verify domain (use test for sandboxes).

INSUFFICIENT_ACCESS

User profile lacks API access or object-level read permission.

Grant API Enabled profile permission and the relevant object permissions.

INVALID_FIELD on a custom object

Field-level security is hiding fields from the API user.

Edit the user's profile/permission set to grant Read on those fields.

Custom object not found

Wrong API name in custom:<name> (custom objects always end in __c).

Use the API name shown in Setup → Object Manager → <Object> → Details (e.g. My_Object__c).

Last updated

Was this helpful?