How does the declarative outbound message retry mechanism handle temporary external endpoint outages?
Answer
Basics: An outbound message is a declarative SOAP notification Salesforce sends to an external endpoint when a record meets criteria. Historically it was configured on a Workflow Rule. Workflow Rules and Process Builder are retired in favor of Flow, so existing outbound messages still work but new designs should use platform events, Flow with HTTP callouts or Change Data Capture.
How it works:
- Setup, Workflow Actions (Outbound Messages): define endpoint URL, object, fields to send, and whether to include a session ID.
- Rule fires and messages enter a queue (up to 100 notifications can be batched in one SOAP message).
- Salesforce POSTs the SOAP document. The listener must respond with a SOAP
Ackoftrue. - If the call times out, fails, or returns
false, Salesforce retries with increasing intervals (up to about two hours apart) for 24 hours. - Pending messages are visible in Setup, Monitor, Outbound Messages, where admins can retry or delete them.
Advanced / deep dive: Delivery is at-least-once, so the listener must be idempotent, using the notification Id and the record Id (compare SystemModstamp) to detect duplicates and stale updates. Ordering is not guaranteed, and retried messages can arrive after newer ones. Because the message includes data as of the time of the trigger, retries can deliver stale values. The listener must be HTTPS with a trusted certificate and must reply quickly; do heavy work asynchronously after acknowledging, or Salesforce will treat a slow response as failure and resend. Outbound messages come from Salesforce IP ranges, so allowlist them. When the retry window ends the message is gone, so you need a reconciliation job (for example querying by SystemModstamp) or move to platform events and Pub/Sub API with a 72-hour replay window.