Skip to content

Integration

Salesforce Integration: Build Interfaces You Can Operate

Integration & Operations5 min read

A working integration does more than move data between systems. Teams need to know what each side promises, who owns the flow, how failures are handled and what happens when one system changes. That is what turns an interface from a technical connection into something operations can actually support.

A workspace showing clearly organized integration paths and operational events. AI-generated illustration; not an actual Salesforce product screenshot.AI-generated
The transport is only one part of the design. Ownership, contract and recovery determine whether the integration remains operable.
Main topic

PATTERN BEFORE PLATFORM

Direct connections can be the right choice.

A point-to-point interface is not automatically poor architecture. If two systems have a stable relationship, the ownership is obvious and the operational model is simple, a direct connection may be the cleanest solution.

The problem starts when direct interfaces multiply without shared contracts, monitoring, ownership or change rules. Then every system change becomes a network problem.

Do not choose middleware because it looks more architectural. Choose the simplest pattern the team can operate reliably.

OPERATING BASICS

Four things should be explicit before the interface goes live.

  • Contract: What exactly do the systems exchange? Define the meaning of the message or API contract, required fields and assumptions on both sides.
  • Ownership: Who owns the full flow? Name the teams responsible for source data, transport, target processing and end-to-end support.
  • Failure handling: What happens when the flow does not complete? Separate technical errors, business rejections and recoverable conditions so each one has a known response.
  • Change: How can either side evolve safely? Define versioning, compatibility expectations and how contract changes are tested and released.

The integration pattern can change. These four responsibilities do not.

EXAMPLE

“Order status” is not a contract until both systems mean the same thing.

Custom integration trace: transport success differs from business acceptance.

A status field looks simple until source and target systems attach different business meaning to the same value.

Mapping values is not enough. The interface contract must preserve the business meaning behind them.

  1. Which system is authoritative for the order state?

  2. Which statuses are technical, commercial or fulfillment states?

  3. Can several source states map to one target state?

  4. What happens when an older event arrives after a newer one?

Further steps (1)
  1. How is an unknown or unsupported status handled?

  1. Source
  2. Contract
  3. Processing
  4. Salesforce
  5. Monitoring
  6. Retry or escalation
  7. Owner

BEFORE IMPLEMENTATION

Questions to answer before the first message is sent.

Most production problems can be traced back to assumptions that were never made explicit during design.

TopicQuestionExampleWhy it matters
TriggerWhat starts the flow?Order confirmed, record changed, scheduled batchThe trigger defines timing, duplicate risk and what “missing” actually means.
Processing orderCan messages arrive late or out of sequence?Status update arrives before the original order eventThe target needs a deliberate rule for stale, missing or reordered messages.
RetryCan the same request be processed safely more than once?Timeout after the target has already committed the changeA retry can create duplicates or repeat a business action unless idempotency is designed.
OwnershipWho investigates when the business result is wrong?Technically successful message creates an invalid target stateTransport success does not prove business success. Someone must own the end-to-end outcome.

RECOVERY

Make retries deliberate.

“Try again” is only safe when the interface knows what happened the first time.

A retry strategy should reduce operational risk — not hide it.

  1. Know whether the failed request reached the target

  2. Use a stable business or idempotency key where repeated processing must be prevented

  3. Distinguish transient technical failures from business rejection

  4. Limit automatic retries and make exhaustion visible

Further steps (2)
  1. Preserve the original payload and error evidence for investigation

  2. Make manual replay a controlled operational action

OPERATING DOCUMENTATION

What to document for an interface you can operate.

Operational documentation should answer the questions a support team has when the interface behaves differently from the diagram.

  • Purpose

    What business process does the interface support?

  • Source and target

    Which systems own the data before and after the handoff?

  • Contract

    Which fields, semantics and compatibility rules are agreed?

  • Trigger and timing

    What starts the flow, and how quickly is the target expected to receive it?

More criteria (5)
  • Error classes

    Which failures are technical, which are business errors and which are safe to retry?

  • Recovery

    How can operations retry, replay or correct the flow without creating duplicates?

  • Monitoring

    Which signals show that the interface is healthy — and which indicate a business problem?

  • Ownership

    Who investigates each part of the flow and who owns the end-to-end outcome?

  • Change process

    How are contract or dependency changes reviewed, tested and released?

Document the operating questions, not every implementation detail.

EXISTING LANDSCAPE

Bring existing interfaces under control without redesigning everything.

You do not need to replace every point-to-point interface to improve the landscape. Start with the connections that create the most operational risk or change effort.

Make system boundaries and handoffs visible together.
Custom processing design: check the event key before another business update.
  1. 01

    Choose critical connections

    Prioritize interfaces that support important processes, fail often or create expensive coordination.

  2. 02

    Make the contract and ownership visible

    Document the source, target, semantics, owner and business purpose before changing technology.

  3. 03

    Test error handling

    Check technical failures, business rejections, duplicates, timeouts and replay behavior.

  4. 04

    Control changes

    Introduce versioning, compatibility rules and a release path for future changes.

Standardize the operating model before you standardize the technology.

ERROR HANDLING

Frequently asked questions about Salesforce integration

Is point-to-point integration always a bad architecture?

No. A direct connection can be the simplest and best option when the relationship is stable, ownership is obvious and the operational model stays manageable. Problems start when many direct interfaces grow without shared contracts, monitoring or change rules.

Is middleware always the better choice?

No. Middleware adds useful capabilities when several systems need shared routing, transformation, orchestration or monitoring. It also adds another platform to own and operate. Use it when that additional responsibility solves a real problem.

Can every failed message simply be retried?

No. A retry is safe only when you know the failure type and whether the target may already have processed the request. Business rejections usually require correction before repetition.

What is the minimum documentation every interface should have?

At minimum: business purpose, source and target, contract, trigger, ownership, monitoring, error classes, retry or recovery behavior and the process for changes.

Sources and further reading

Primary Salesforce documentation and reference material for integration architecture, APIs, events and operating practices.

  1. Salesforce Architects – Data Integration with SalesforceChecked on

    Supports Salesforce integration patterns, decision guides and operational principles; recheck platform and pattern recommendations before publication.

  2. Salesforce Architects – Integration Decision GuidesChecked on

    Supports Salesforce integration patterns, decision guides and operational principles; recheck platform and pattern recommendations before publication.

  3. Salesforce Architects – Integration PatternsChecked on

    Supports Salesforce integration patterns, decision guides and operational principles; recheck platform and pattern recommendations before publication.

Topics in this article