Salesforce Examples¶
Real scenarios showing what the Salesforce connector does with orgs and objects of different shapes. Pick a tab to see how the connection is set up and what to expect from the Sync, the Profile, and the Scan.
Connecting a production org for the first time¶
Context. A revenue operations team wants to monitor the quality of its Salesforce data. Their Salesforce admin creates an External Client App with the Manage user data via APIs (api) scope and the Client Credentials Flow enabled, and picks a dedicated integration user, qualytics@acme.com, as its Run As user. A permission set gives that user API Enabled and read access to the sales objects.
What happens. The team enters https://acme.my.salesforce.com in URL, and the app's Consumer Key and Consumer Secret in Client ID and Client Secret. They leave Objects empty and Maximum Parallel Jobs at 4. The connection test passes, and there is no database to pick, so they go straight to General and finish. The first Sync lists the org's custom objects and the standard objects with page layouts that the integration user can query, each with the fields that user can read.
Why it works. Qualytics reads with exactly the access the permission set grants, so what appears in Qualytics matches what the integration user can see in Salesforce. Supporting objects such as sharing rules and field history are left out, so the containers are the business records the team works with.
Monitoring only the objects that matter¶
Context. A large org has more than 600 objects that the integration user can query, many of them installed by managed packages. The data team checks only accounts, contacts, opportunities, and a custom Contract_Line__c object.
What happens. They enter Account, Contact, Opportunity, contract_line__c in Objects. The Sync lists those four objects and nothing else. The lowercase contract_line__c still matches, because names match regardless of case. Later they add OpportunityHistory to track stage changes; it is synced even though history objects are normally left out, because it was named.
Why it works. Every object listed costs API requests at each Sync and each scan. Naming the four objects keeps the inventory focused and the daily API usage small, and leaves the rest of the org's allowance to the integrations that need it.
Scanning an object with tens of millions of records¶
Context. An org's Task object holds 40 million records. A nightly scan checks it for missing owners and invalid statuses.
What happens. On the first run, the scan reads the whole object. Qualytics splits it into ranges of record IDs and reads them as four Bulk API query jobs at once, the connection's Maximum Parallel Jobs. On the following nights, the scan is incremental on SystemModstamp, so it reads only the records changed since the previous night, usually a few tens of thousands, in a single query job.
Why it works. Reading in parallel shortens the first full read, and the incremental field Salesforce updates on every change, including changes made by automation, means no edited record is missed on the nights that follow.
Checking a full scan against the daily allowance¶
Context. After a data migration, a team wants to run a full scan of every object in their Salesforce datastore. Their org also feeds a marketing platform and a data warehouse through the API, so they are wary of using up the day's allowance.
What happens. In the Scan Operation dialog, they select every container, choose Full on the Read Settings step, and click Estimate API usage. The estimate reports that the scan would need more API requests than the org has left today. They switch to Incremental, click Estimate API usage again, and the new estimate shows a small share of the daily allowance. They run the incremental scan now and schedule the full scan for the early morning, after the allowance has recovered.
Why it works. The estimate counts the records each object would return for the chosen strategy and record limit before anything is read, so the team can see the cost while they can still change the plan. A scan that would have stopped partway, and taken the other integrations down with it, never starts.
See Also¶
-
Best Practices
Recommendations for choosing objects, sizing parallel reads, and keeping API usage low.
-
Permissions
The access the Run As user needs in Salesforce.
-
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.
-
Authentication
The Salesforce app, the client credentials flow, and the Run As user Qualytics reads as.