Salesforce Integration: Planning the Data Model, Sync and Ownership
A request for “product usage in Salesforce” sounds like a connector and a few field mappings. At a company selling fleet telematics software to trucking firms, it turns into a set of questions nobody had answered: is the customer the parent carrier or each terminal, does usage mean active devices or miles logged, which system wins when billing and the sales team disagree on contract value, and what happens to the account executive’s dashboard when the sync fails overnight.
A Salesforce integration connects Salesforce to the other systems a business runs, such as the product database, billing, support, marketing or an ERP, so that records and changes move between them automatically. Most of the work, and most of the risk, sits in three decisions made before any code: how your data maps onto Salesforce’s data model, how records are matched and synced in each direction, and who owns the integration once admins and engineers both start changing things around it. The API calls are the easy part.
What Is Salesforce Integration?
Salesforce integration is any automated connection that reads from or writes to a Salesforce org from an outside system, or sends Salesforce changes out to one. It can run through Salesforce’s REST, SOAP or Bulk APIs, through event mechanisms such as Change Data Capture, or through a middleware layer that sits between Salesforce and several other systems.
Teams usually integrate Salesforce for one of a few reasons. Sales and customer success want product and billing context on the account without logging into other tools. Finance wants closed opportunities to create contracts or invoices downstream without re-keying. Operations wants a customer’s onboarding status in Salesforce to reflect what actually happened in the product. Each of those is a different integration with different owners, even when they touch the same Account record.
How Should Your Data Map to Salesforce Objects?
Map your data to Salesforce objects by starting from the questions the sales and customer teams need answered, then choosing the smallest set of standard and custom objects that answers them. Copying your product’s whole schema into Salesforce creates a second database that nobody maintains.
The telematics company has to settle the account question first. Its product knows about fleets, terminals and devices. Salesforce has Accounts, which can sit in a parent and child hierarchy, Contacts, Opportunities and whatever custom objects the team creates. A reasonable mapping might make each carrier a parent Account, each terminal a child Account, and store contract terms on a custom Subscription object linked to the Account. Getting this wrong is expensive later, because reports, territory assignment and permissions all build on the account structure.
Usage data needs a decision about grain. Raw telemetry, one row per vehicle per minute, does not belong in a CRM. A daily or weekly summary per terminal, such as active devices and the change from last month, gives an account executive what they need for a renewal conversation without filling storage or slowing reports. Keep the detailed data in your product’s analytics store and send Salesforce the summary that drives a sales action.
Resist adding a new field for every request. Each custom field is something the integration has to populate, every admin has to understand and every future change has to account for. A short written data dictionary, listing each integrated field, its source system and its meaning, pays for itself the first time someone asks why a number changed.
How Should Records Be Matched Between Systems?
Match records with a stable external identifier from the source system, stored on the Salesforce record, rather than by names or email addresses. Names change and duplicate, and a matching rule built on them will eventually attach one customer’s data to another customer’s account.
Salesforce supports this directly. Its REST API can upsert a record using an external ID field: if the external ID is not matched, a new record is created, and if it is matched multiple times, the API reports an error and the record is not created or updated (Source: Salesforce, REST API Developer Guide, Upsert Using an External ID). For the telematics company, storing the product’s terminal ID on each child Account means every usage summary lands on the right record, and a rerun of the sync updates instead of duplicating.
That multiple-match error is useful information. It usually means duplicates already exist, often because sales reps created accounts by hand before the integration arrived. Plan a cleanup before launch: decide which existing records correspond to which product entities, merge the duplicates, and stamp the external IDs on the survivors. Integrations built on top of a messy org inherit the mess and make it harder to see.
Which System Should Own Each Field?
Assign every integrated field a single owning system, and make the integration write only in the direction of that ownership. Two-way sync without field-level ownership turns into an argument between systems that people only notice when a number flips back and forth.
| Field | Owning system | Direction |
|---|---|---|
| Account name and hierarchy | Salesforce | Out to product and billing, if needed |
| Contract start, end and value | Billing system | Into Salesforce, read only there |
| Active devices, usage trend | Product | Into Salesforce, read only there |
| Opportunity stage, forecast | Salesforce | Stays in Salesforce |
| Primary admin contact | Product, for login; Salesforce, for sales contact | Decide once and document it |
Making fields owned by other systems read only in Salesforce, through page layouts and field permissions, prevents well-meaning edits that the next sync silently reverses. When a field really needs edits in both places, such as a billing contact, pick one place for edits and send the change across, rather than accepting writes on both sides and resolving conflicts afterward.
How Do API Limits Affect a Salesforce Integration?
Salesforce API limits are shared across the whole org, so every integration you add competes with the others for the same allowance. Salesforce’s documentation says limits and allocations are enforced against the aggregate of all API calls made to the org in a 24-hour period, not on a per-user basis, and the allocation depends on the edition and licenses (Source: Salesforce, API Request Limits and Allocations).
The practical consequence is that a badly behaved integration can stop a well-behaved one. If the telematics company’s usage sync updates every terminal record one call at a time every hour, it may consume the allowance the marketing and support integrations also depend on. Send only records that changed, group updates into composite or bulk requests where the volume justifies it, and use the Bulk API for large loads such as the initial backfill.
Monitor consumption the way you would any shared resource. Know which integration uses how much of the daily allocation, alert before the org approaches its limit, and make background jobs back off when it does. Ask your Salesforce admin for the current allocation before you design, because it varies between orgs.
Should You Push Changes or Poll for Them?
Push changes when another system needs to react to Salesforce updates quickly, and poll when a delay is acceptable and the volume is modest. Polling every few minutes for “anything that changed” spends API calls asking a question whose answer is usually “nothing.”
For changes leaving Salesforce, Change Data Capture is the platform’s mechanism for updating data in an external system, and change events are available for all custom objects and a subset of standard objects (Source: Salesforce, Change Data Capture Developer Guide). When a customer success manager marks a terminal as churned, a subscriber can pick up that change and update the product’s provisioning without waiting for a nightly job.
Event-driven sync needs its own care. Subscribers can fall behind or miss events during an outage, so the receiving system should be able to replay from a known point or fall back to a periodic reconciliation that compares both sides. Events can also arrive more than once, and the subscriber should recognize a change it has already applied.
What Breaks Salesforce Integrations After Launch?
Salesforce integrations that fail after launch often fail because something inside the org changed while the integration code stayed the same. Salesforce is designed to be configured by admins without a deployment, which is its strength for the business and the main source of surprise for integrations.
A new validation rule that requires a field the integration does not send will reject every update from that point on. A Flow added to run when an Account changes can fire on each of the integration’s thousands of updates and trigger work nobody intended. A renamed picklist value can stop matching the value your code sends. A permission change to the integration’s user can make fields disappear from API responses without an error that anyone sees.
Three habits prevent most of this. Run the integration as a dedicated integration user with its own permission set, so its access is explicit and changes to it are deliberate. Agree that admin changes to integrated objects go through a short review that includes whoever owns the integration, and test them in a sandbox first. And log rejected writes with the Salesforce error message attached, because “FIELD_CUSTOM_VALIDATION_EXCEPTION” in a log points straight at the cause, while a field that silently goes stale can confuse the sales team for weeks before anyone traces it. If outside engineers will hold the integration user’s credentials, Gun.io sets out its side in its approach to security and privacy, and your own policy still decides who holds them and what that user can reach.
Who Should Own a Salesforce Integration?
A Salesforce integration needs one owner who understands both the org’s configuration and the code on the other side, plus a named Salesforce admin partner for changes inside the org. Splitting it so that admins own Salesforce and engineers own “the sync” leaves the boundary between them, which is where the failures happen, without an owner.
The engineer who owns it should be comfortable reading the org’s metadata, writing integration code and talking with the sales operations team about what a field means. At Gun.io, we would rather put one engineer with that range on the problem than a Salesforce specialist and a backend developer who hand work back and forth. Add a specialist when the org itself needs deep platform work, such as complex Apex, a large data migration or heavy customization, because that is distinct depth. If the integration is part of a broader product effort, engineers with SaaS product experience tend to understand why the usage data matters to the business as well as how to move it.
Before adding anyone, check whether the constraint really is engineering capacity. Sometimes the blocker is that sales operations and finance have not agreed what “contract value” means, and Gun.io has written about why the business problem should be defined before headcount is added.
How Gun.io Approaches Salesforce Integration
Gun.io has delivered systems integration work that includes Salesforce, typically together with the backend and data engineering on the far side of the sync. The questions we ask first are about the account model, the state of the existing records and how much data has to move, because those tell us whether the job is mostly cleanup, mostly mapping or mostly engineering.
Teams that already have an admin and an engineering lead usually add an engineer under their direction through staff augmentation. Teams that want the mapping designed, field ownership negotiated with sales operations and finance, and the integration delivered can hand Gun.io that broader scope as a project. Either route starts from the engagement models and engineering areas on Gun.io’s solutions page.
Frequently Asked Questions
Should We Use a Prebuilt Connector or Build a Custom Salesforce Integration?
A connector suits common flows, such as syncing contacts with a widely used marketing or support tool, as long as its matching and conflict behavior suits you. Build custom when the integration carries your own data model, business rules or volumes, such as product usage summaries, because those are the cases where generic matching and field mapping fall short.
Can a Salesforce Integration Work With a Custom-Built Internal System?
Yes. A custom system can call Salesforce’s APIs directly or publish changes to a small integration service that does, and it can subscribe to Salesforce change events in return. The planning is the same as for any other source system: a stable external ID, field ownership and a plan for failures.
How Do We Avoid Duplicate Records When Integrating Salesforce?
Clean up existing duplicates before launch, store a stable external ID from the source system on each Salesforce record and use upsert by that ID instead of insert. Turn on duplicate rules for records created by hand, and route any record the integration cannot match to a review queue instead of creating a new one automatically.
Should Integration Logic Live in Salesforce or Outside It?
Keep logic that enforces Salesforce data rules inside Salesforce and keep transformation, matching and orchestration in the integration service outside it. That split lets admins manage the org’s rules while engineers change the integration on a normal release cycle, and it avoids burying sync logic in Flows and triggers that are hard to trace.
How Do We Test Changes to a Salesforce Integration?
Test in a sandbox that mirrors production configuration, with representative data including duplicates, missing fields and long account hierarchies. Re-run the integration’s test suite whenever admins change integrated objects, and promote configuration and code changes together so the sandbox result reflects what production will see.
What Should We Monitor After a Salesforce Integration Goes Live?
Monitor API consumption against the org’s allocation, the count and type of rejected writes, the age of the most recent successful sync for each flow and a business check such as accounts with stale usage data. Send alerts to the integration’s owner, and give the sales operations team a simple view of sync status so they report problems early.
Agree on the Data Before You Connect the Systems
A Salesforce integration lasts when the account model, the matching key and each field’s owner are settled first and the org’s admins and engineers change it together. If you are planning one, share what you need Salesforce to show and where that data lives today, along with who runs the org and who will own the sync.