CRM & Integrations · 9 min read
Salesforce CRM Integrations: Connectors vs Middleware vs Custom APIs
Compare native connectors, middleware and custom APIs for Salesforce integration. Learn which approach fits, common failure modes, security and decision criteria.
Useful Builds ·
Connecting Salesforce to a website, finance platform or support tool sounds straightforward: move data from A to B. The difficult questions arise when a request times out, a customer changes an email address, or two systems disagree about which record is correct.
For a growing business, the choice is often between a supported connector, an integration platform (middleware or iPaaS), and a custom API. None is universally best. The right answer depends on how critical the workflow is, how many systems it touches and who will maintain it.
Choose the integration pattern before the product
Start with the business event. Does a user need an immediate response? Can a scheduled job run overnight? Or must another platform react shortly after a Salesforce record changes? Salesforce Architects documents request-and-reply, fire-and-forget, batch synchronisation, remote call-in and data virtualisation patterns. Those patterns should guide the design before a vendor pitch does.
See the official Salesforce Integration Patterns guide.
Option 1: Native or ready-made connectors
Start here when a vendor-supported connector already covers the exact objects, actions and events you need. Typical uses include creating CRM leads from a form or passing approved customer attributes to a marketing system.
Good fit
- A standard workflow between one or two applications.
- Simple mappings, predictable volume and minimal custom transformations.
- Operations staff can inspect failures and correct them without writing code.
Watch out for
Not all connectors expose every Salesforce object or support duplicate detection, retries and audit logs. Confirm rate limits, data ownership and sandbox compatibility before buying. “No code” never means “no maintenance”.
Option 2: Middleware or an integration platform
Middleware can coordinate several systems, transform messages and centralise monitoring. Think of a website order that updates billing, Salesforce and a notification service. The integration layer becomes the place to handle routing, security and failures rather than repeating the logic in every application.
Good fit
- Three or more important systems share customer or operational data.
- Reusable APIs, queues or complex transformations are needed.
- The business can support platform licensing and integration operations.
Watch out for
Middleware introduces cost and another operational dependency. A tangle of orchestration flows can be as fragile as a tangle of custom code. Establish message ownership and recovery paths early.
Option 3: Custom APIs and integration services
A custom backend is useful when a workflow is central to your product, has specialised eligibility logic, or requires precise security boundaries. For example, a headless customer portal may combine Salesforce account data with an external booking system and expose only records that the authenticated customer can access.
Good fit
- Customer-facing APIs with unusual business rules or complex permissions.
- Off-the-shelf tools cannot represent the required data contract.
- An engineering team can own tests, monitoring, deployments and support.
Watch out for
You inherit responsibility for reliability, authentication, API versions and incident response. A narrow service with clear boundaries may be better than prematurely building a microservices ecosystem.
Connector vs middleware vs custom API: decision matrix
| Question | Connector | Middleware | Custom API |
|---|---|---|---|
| Typical scope | Standard app-to-app flow | Multi-system orchestration | Specialised business process |
| Initial delivery | Often fastest if supported | Setup plus workflow design | Engineering and testing |
| Primary owner | App administrator | Integration team | Software team |
| Common hidden cost | Feature or volume limits | Licences and flow complexity | Long-term maintenance |
These are typical patterns, not guaranteed price or performance rankings. Compare total cost over the lifetime of the integration, including fixes and support.
Five engineering decisions that matter more than your tool
1. Name the source of truth
Define which system owns each data element. Salesforce may own lead qualification while a finance platform owns settled payment status. Unrestricted two-way synchronisation can create update loops or overwrite newer data.
2. Match processing style to the job
Use a synchronous request only when someone needs the result immediately. For event-driven changes, consider Salesforce Change Data Capture, subject to edition and usage constraints. For large imports or exports, Bulk API 2.0 supports asynchronous data operations. No single delivery mechanism suits every use case.
3. Make retries safe
A network timeout does not mean the first attempt failed. A second request could create a duplicate order or payment. Assign a stable request identifier, record the outcome and design idempotent processing before enabling retries. See the Amazon Builders' Library explanation of idempotent APIs.
4. Protect records, not just endpoints
A valid token does not automatically authorise access to every customer record or field. Enforce object-level and field-level permissions and avoid exposing CRM credentials in browser code. OWASP's API Security Top 10 emphasises broken object and property-level authorisation. For Salesforce outbound connections, Named Credentials and External Credentials support centrally managed authenticated callouts.
5. Plan for exceptions
Track correlation IDs, attempts, message status and business record IDs. Decide who responds when a message fails, how to replay it safely and how to reconcile records that differ across systems. A green “connected” light is not proof that every transaction succeeded.
A worked example: website enquiries into Salesforce
Imagine a website collecting enquiries and creating leads in Salesforce. A simple connector may be enough. If that same flow also checks eligibility, prevents duplicate records and assigns leads using complex rules, a custom backend or middleware may offer clearer control.
- Validate the submission and apply rate limiting and spam protection.
- Assign an external enquiry ID to identify repeat requests.
- Match existing records using documented business rules.
- Create or update the Salesforce record while preserving the source identifier.
- Send acknowledgements only once the relevant processing step succeeds.
- Make failed submissions visible and safely replayable.
Do not rely on matching email addresses alone to decide whether two people are the same customer. Good data quality requires explicit ownership and exception handling.
Questions to ask before committing
- Data: Which objects and fields move, and who owns them?
- Timing: Is immediate consistency necessary or is eventual consistency acceptable?
- Security: Which users can see or change records and how are secrets stored?
- Failures: Can requests be retried without duplicate side effects?
- Ownership: Who supports the integration after launch?
- Economics: What will licences, engineering, monitoring and maintenance cost over two years?
When to modernise instead of replace your CRM
If Salesforce still supports your core operations, you may not need a replacement. A clear API boundary can support a new headless portal, specialised integrations and AI-assisted workflows while preserving your system of record. Replace it only if the limitations outweigh migration risk and cost.
For related ideas, read our practical guide to AI automation for small businesses. If your systems are difficult to connect or maintain, speak with Useful Builds about a focused architecture review.