Skip to content

Salesforce Introduction to the Salesforce Connector

Salesforce is a cloud CRM platform. Each customer has its own org, which holds its records in objects: standard objects such as Account, Contact, and Opportunity, and the custom objects an org adds for its own processes. Every object has fields, and Salesforce controls who can read which objects and fields through profiles, permission sets, and field-level security.

The Qualytics Salesforce connector reads the objects of one org through Salesforce's APIs, signing in as a Salesforce app with the OAuth client credentials flow. A Sync turns each object into a container with its fields, so Qualytics can profile your CRM data, run scheduled scans, and surface record- and schema-level anomalies on it the same way it does on tables in a database.


Source datastores only

Salesforce is read-only, so it cannot be used as an enrichment datastore. Qualytics never writes to Salesforce. Link a separate enrichment datastore as its destination to store the anomalies and metadata Qualytics produces, either during creation or afterwards.

Reads count against your org's daily API allowance

Salesforce counts every API request Qualytics sends against the daily allowance your org shares with all its other integrations. See API Usage for what each operation costs and how to estimate a scan or profile before it runs.

Notes

What becomes a container. Each object becomes a container. With Objects left empty, the Sync lists the custom objects, and the standard objects that have page layouts, that the Run As user can query. It leaves out the objects that support other objects rather than hold business records: sharing objects (names ending in Share), history objects (History), feed objects (Feed), change events (ChangeEvent), tag objects (__Tag), custom metadata types (__mdt), and platform events (__e). It also leaves out ContentDocumentLink and ContentFolderItem, because Salesforce answers queries on them only for given record IDs, so they cannot be read in full. Objects that hold no records yet are still listed.

Choosing the objects yourself. Enter API names in Objects, separated by commas, to sync only those objects, for example Account, Contact, Opportunity. Names match regardless of case. An object you name is synced even when it would otherwise be left out, such as AccountHistory. Name ContentDocumentLink only when the Run As user has the Query All Files permission (which needs View All Data): without it, every read of that object fails. Big objects (__b) and external objects (__x) are never synced, because Salesforce does not let them be read in bulk.

Which fields appear. A container lists the fields the Run As user can read. A field hidden from that user by field-level security does not appear, and no warning says it was left out. Formula fields are included. Compound fields, such as addresses and geolocations, are read through their component fields (for example BillingStreet, BillingCity, and BillingLatitude) rather than as one field. File content (base64) fields are not synced.

How Salesforce field types are read.

Salesforce type Read as
Number, currency, and percent Decimal, with up to 18 digits after the decimal point
Integer (such as Employees on Account) Integer
Date Date
Date/time Timestamp
Checkbox Boolean
Picklist, multi-select picklist, text, text area, ID, lookup, email, URL, phone, time, and every other type Text

Number, currency, and percent fields read as decimals whatever number of decimal places they declare, so values keep every digit Salesforce stores. Salesforce can hold more decimal places than a field declares, for example a whole-number Annual Revenue field holding 236044113.84, and Qualytics reads the value as stored.

Incremental scans. At Sync, each object's incremental field is set to SystemModstamp, which Salesforce updates on every change to a record, including changes made by automation. An object without SystemModstamp uses LastModifiedDate instead. An incremental scan then reads only the records changed since the previous one.

How records are read. Records are read through Salesforce's Bulk API, in query jobs. An object with more than about 250,000 records to read is split into ranges of record IDs and read as several query jobs at once, up to Maximum Parallel Jobs. Filters in a scan or profile are passed to Salesforce wherever it can apply them, so a filtered read transfers fewer records. Record counts and the newest SystemModstamp of an object are asked of Salesforce directly, which costs one API request instead of reading every record.

The connection form. The Connection Properties section of the Add Datastore form asks for the following. They belong to the connection, so other datastores can reuse them.

Field Required Description
Connection Name A label for the saved connection, for example acme_salesforce.
URL Your org's My Domain URL, for example https://acme.my.salesforce.com. Not login.salesforce.com: Salesforce issues client credentials sessions only on the My Domain URL.
Client ID The Consumer Key of a Salesforce app (an External Client App or a Connected App) with the Client Credentials Flow enabled and a Run As user.
Client Secret The app's Consumer Secret. Stored encrypted and never displayed back. Changing the URL of a saved connection takes the Client Secret again.
Objects API names of the objects to sync, separated by commas, for example Account, Contact, Opportunity. Names match regardless of case. Leave it empty for the objects described in What becomes a container.
Maximum Parallel Jobs How many Bulk API query jobs one read runs at once, a whole number above zero. Defaults to 4. Each job counts against the org's daily Bulk API allowance, which other integrations share.

Secrets Management, inside the same section, lets any of these fields take its value from a secrets manager with ${key}; see HashiCorp Vault. The General section holds the datastore's own settings: its Name, its Teams, an optional Group, and Initiate Sync to run the first Sync once the datastore is created.

What the form does not ask for. There is no Location step and no database or schema to pick: an org has a single set of objects, so one connection leads to one datastore. There is no user name or password either. Qualytics signs in as a Salesforce app, and reads as that app's Run As user; see Authentication. Salesforce Data Cloud is not supported.


Deep Dive

  • API Usage


    How Salesforce counts what Qualytics reads against your org's daily allowance, and how to estimate a scan or profile before it runs.

    API Usage

  • Authentication


    The Salesforce app, the client credentials flow, and the Run As user Qualytics reads as.

    Authentication

  • Examples


    Worked scenarios: a first connection, a short list of objects, a large object read in parallel, and a scan checked against the allowance.

    Examples

  • Best Practices


    Recommendations for choosing objects, sizing parallel reads, and keeping API usage low.

    Best Practices

  • Permissions


    The access the Run As user needs in Salesforce.

    Permissions


How-tos


Reference

  • Troubleshooting


    Known problems and how to resolve them, grouped by the step that failed: signing in, syncing objects, or reading records.

    Troubleshooting

  • API


    Create, test, read, update, and delete Salesforce datastores over the API, and estimate a scan's or profile's API usage.

    API

  • FAQ


    Short answers to the questions that come up most often about the Salesforce app, objects, fields, and API usage.

    FAQ