[{"data":1,"prerenderedAt":1123},["ShallowReactive",2],{"content-query-nlz4wlwNGC":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"layout":10,"head":11,"author":13,"tags":14,"categories":21,"date":23,"faq":24,"image":43,"body":44,"_type":1116,"_id":1117,"_source":1118,"_file":1119,"_stem":1120,"_extension":1121,"sitemap":1122,"readingTime":248},"/blog/salesforce-outbound-messages","blog",false,"","Salesforce Outbound Messages: Receive Them Behind a Firewall","How Salesforce Outbound Messages work (SOAP payload, the Ack response, 24-hour retries, ports and IP ranges) and how to receive them on an internal server with no inbound firewall rules.","post",{"title":12},"Salesforce Outbound Messages Behind a Firewall","Karolis Rusenas",[15,16,17,18,19,20],"salesforce","outbound messages","soap","webhooks","on-prem","guide",[22],"tutorials","2026-11-17 13:00:00",[25,28,31,34,37,40],{"q":26,"a":27},"What is a Salesforce Outbound Message?","It's Salesforce's built-in webhook. When a record meets the criteria of a flow, workflow rule or approval step, Salesforce sends a SOAP message with the fields you picked to an endpoint URL you configure. The listener has to reply with a SOAP acknowledgement, otherwise Salesforce keeps retrying.",{"q":29,"a":30},"What response does a Salesforce Outbound Message listener have to return?","A SOAP envelope containing a notificationsResponse element in the http://soap.sforce.com/2005/09/outbound namespace with Ack set to true. The acknowledgement covers every notification in the message. Anything else, including a plain 200 with an empty body, counts as a failure and the message is retried.",{"q":32,"a":33},"How long does Salesforce retry an Outbound Message?","Failed messages stay in the queue and are retried for up to 24 hours. The interval between retries grows exponentially to a maximum of two hours. After 24 hours the message is dropped. Messages can also arrive out of order or more than once, so the listener should dedupe on the notification Id.",{"q":35,"a":36},"Can Salesforce Outbound Messages reach a server on our internal network?","Not directly. Salesforce sends from its own cloud to a public URL on port 80, 443 or 1024 to 65535. To reach an internal server without opening an inbound port, point the outbound message at a Webhook Relay input that returns the SOAP acknowledgement, and run the relay agent inside your network to deliver each message to the internal listener.",{"q":38,"a":39},"Are Outbound Messages still supported now that Workflow Rules are retired?","Yes. Salesforce ended support for Workflow Rules and Process Builder at the end of 2025, but existing rules keep running and Outbound Message is available as an action in Flow Builder. New automation should send outbound messages from a record-triggered flow.",{"q":41,"a":42},"Which IP addresses do Salesforce Outbound Messages come from?","Salesforce publishes its outbound IP ranges at ip-ranges.salesforce.com/ip-ranges.json and says there are no static IP addresses for individual instances. You can put those ranges in a Webhook Relay input's source IP allowlist (Business plan and above) and also check the OrganizationId inside each message.","/images/blog/heroes/route.jpg",{"type":45,"children":46,"toc":1101},"root",[47,57,78,85,97,122,138,186,193,198,390,402,408,445,513,533,539,544,550,556,569,609,637,643,662,723,729,741,747,948,954,1021,1027,1095],{"type":48,"tag":49,"props":50,"children":51},"element","p",{},[52],{"type":48,"tag":53,"props":54,"children":56},"img",{"alt":55,"src":43},"Salesforce Outbound Messages behind a firewall",[],{"type":48,"tag":49,"props":58,"children":59},{},[60,76],{"type":48,"tag":61,"props":62,"children":63},"strong",{},[64,67,74],{"type":65,"value":66},"text","Salesforce Outbound Messages are SOAP webhooks: Salesforce posts an XML envelope to a URL you configure and retries for up to 24 hours until it gets a SOAP ",{"type":48,"tag":68,"props":69,"children":71},"code",{"className":70},[],[72],{"type":65,"value":73},"Ack",{"type":65,"value":75},".",{"type":65,"value":77}," If the listener runs on your private network, point the outbound message at a Webhook Relay input that returns that acknowledgement, and run the relay agent next to your listener. The agent connects out, so Salesforce never needs an inbound path into your network, and messages are stored and retried on Webhook Relay's side if your listener is down.",{"type":48,"tag":79,"props":80,"children":82},"h2",{"id":81},"how-outbound-messages-work",[83],{"type":65,"value":84},"How Outbound Messages work",{"type":48,"tag":49,"props":86,"children":87},{},[88,90,95],{"type":65,"value":89},"An outbound message is a declarative action. You define it once in Setup (search ",{"type":48,"tag":61,"props":91,"children":92},{},[93],{"type":65,"value":94},"Outbound Messages",{"type":65,"value":96}," in Quick Find): pick the object, the endpoint URL, the user to send as, and the fields to include. Then you attach it to automation:",{"type":48,"tag":98,"props":99,"children":100},"ul",{},[101,112],{"type":48,"tag":102,"props":103,"children":104},"li",{},[105,110],{"type":48,"tag":61,"props":106,"children":107},{},[108],{"type":65,"value":109},"Flow Builder",{"type":65,"value":111},": Outbound Message is an action in record-triggered flows. This is where new automation belongs.",{"type":48,"tag":102,"props":113,"children":114},{},[115,120],{"type":48,"tag":61,"props":116,"children":117},{},[118],{"type":65,"value":119},"Workflow Rules and approval processes",{"type":65,"value":121},": the original home of outbound messages. Salesforce ended support for Workflow Rules and Process Builder at the end of 2025. Existing rules keep running, but don't build new ones there.",{"type":48,"tag":49,"props":123,"children":124},{},[125,127,136],{"type":65,"value":126},"When the automation fires, Salesforce queues a message and a background process sends it. According to ",{"type":48,"tag":128,"props":129,"children":133},"a",{"href":130,"rel":131},"https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_om_outboundmessaging_notifications.htm",[132],"nofollow",[134],{"type":65,"value":135},"Salesforce's documentation",{"type":65,"value":137},":",{"type":48,"tag":98,"props":139,"children":140},{},[141,149,159,176],{"type":48,"tag":102,"props":142,"children":143},{},[144],{"type":48,"tag":61,"props":145,"children":146},{},[147],{"type":65,"value":148},"One SOAP message can carry up to 100 notifications.",{"type":48,"tag":102,"props":150,"children":151},{},[152,157],{"type":48,"tag":61,"props":153,"children":154},{},[155],{"type":65,"value":156},"Delivery is retried",{"type":65,"value":158}," with exponentially growing intervals, up to two hours apart, for up to 24 hours. Then the message is dropped.",{"type":48,"tag":102,"props":160,"children":161},{},[162,167,169,175],{"type":48,"tag":61,"props":163,"children":164},{},[165],{"type":65,"value":166},"Messages can arrive out of order and more than once.",{"type":65,"value":168}," Dedupe on each notification's ",{"type":48,"tag":68,"props":170,"children":172},{"className":171},[],[173],{"type":65,"value":174},"Id",{"type":65,"value":75},{"type":48,"tag":102,"props":177,"children":178},{},[179,184],{"type":48,"tag":61,"props":180,"children":181},{},[182],{"type":65,"value":183},"Allowed endpoint ports",{"type":65,"value":185}," are 80 (HTTP only), 443 (HTTPS only), and 1024 to 65535 (HTTP or HTTPS).",{"type":48,"tag":187,"props":188,"children":190},"h3",{"id":189},"the-payload",[191],{"type":65,"value":192},"The payload",{"type":48,"tag":49,"props":194,"children":195},{},[196],{"type":65,"value":197},"Each delivery is a SOAP envelope like this one, trimmed:",{"type":48,"tag":199,"props":200,"children":204},"pre",{"className":201,"code":202,"language":203,"meta":7,"style":7},"language-xml shiki shiki-themes github-dark","\u003Csoapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n                  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n  \u003Csoapenv:Body>\n    \u003Cnotifications xmlns=\"http://soap.sforce.com/2005/09/outbound\">\n      \u003COrganizationId>00D5g000000AbCdEAF\u003C/OrganizationId>\n      \u003CActionId>04k5g000000XyZaAAC\u003C/ActionId>\n      \u003CSessionId xsi:nil=\"true\"/>\n      \u003CEnterpriseUrl>https://acme.my.salesforce.com/services/Soap/c/62.0/00D5g000000AbCd\u003C/EnterpriseUrl>\n      \u003CPartnerUrl>https://acme.my.salesforce.com/services/Soap/u/62.0/00D5g000000AbCd\u003C/PartnerUrl>\n      \u003CNotification>\n        \u003CId>04l5g00000AbCdEAAV\u003C/Id>\n        \u003CsObject xsi:type=\"sf:Opportunity\" xmlns:sf=\"urn:sobject.enterprise.soap.sforce.com\">\n          \u003Csf:Id>0065g00000QwErTAAZ\u003C/sf:Id>\n          \u003Csf:StageName>Closed Won\u003C/sf:StageName>\n          \u003Csf:Amount>48000.0\u003C/sf:Amount>\n        \u003C/sObject>\n      \u003C/Notification>\n    \u003C/notifications>\n  \u003C/soapenv:Body>\n\u003C/soapenv:Envelope>\n","xml",[205],{"type":48,"tag":68,"props":206,"children":207},{"__ignoreMap":7},[208,219,228,237,246,255,264,273,282,291,300,309,318,327,336,345,354,363,372,381],{"type":48,"tag":209,"props":210,"children":213},"span",{"class":211,"line":212},"line",1,[214],{"type":48,"tag":209,"props":215,"children":216},{},[217],{"type":65,"value":218},"\u003Csoapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n",{"type":48,"tag":209,"props":220,"children":222},{"class":211,"line":221},2,[223],{"type":48,"tag":209,"props":224,"children":225},{},[226],{"type":65,"value":227},"                  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n",{"type":48,"tag":209,"props":229,"children":231},{"class":211,"line":230},3,[232],{"type":48,"tag":209,"props":233,"children":234},{},[235],{"type":65,"value":236},"  \u003Csoapenv:Body>\n",{"type":48,"tag":209,"props":238,"children":240},{"class":211,"line":239},4,[241],{"type":48,"tag":209,"props":242,"children":243},{},[244],{"type":65,"value":245},"    \u003Cnotifications xmlns=\"http://soap.sforce.com/2005/09/outbound\">\n",{"type":48,"tag":209,"props":247,"children":249},{"class":211,"line":248},5,[250],{"type":48,"tag":209,"props":251,"children":252},{},[253],{"type":65,"value":254},"      \u003COrganizationId>00D5g000000AbCdEAF\u003C/OrganizationId>\n",{"type":48,"tag":209,"props":256,"children":258},{"class":211,"line":257},6,[259],{"type":48,"tag":209,"props":260,"children":261},{},[262],{"type":65,"value":263},"      \u003CActionId>04k5g000000XyZaAAC\u003C/ActionId>\n",{"type":48,"tag":209,"props":265,"children":267},{"class":211,"line":266},7,[268],{"type":48,"tag":209,"props":269,"children":270},{},[271],{"type":65,"value":272},"      \u003CSessionId xsi:nil=\"true\"/>\n",{"type":48,"tag":209,"props":274,"children":276},{"class":211,"line":275},8,[277],{"type":48,"tag":209,"props":278,"children":279},{},[280],{"type":65,"value":281},"      \u003CEnterpriseUrl>https://acme.my.salesforce.com/services/Soap/c/62.0/00D5g000000AbCd\u003C/EnterpriseUrl>\n",{"type":48,"tag":209,"props":283,"children":285},{"class":211,"line":284},9,[286],{"type":48,"tag":209,"props":287,"children":288},{},[289],{"type":65,"value":290},"      \u003CPartnerUrl>https://acme.my.salesforce.com/services/Soap/u/62.0/00D5g000000AbCd\u003C/PartnerUrl>\n",{"type":48,"tag":209,"props":292,"children":294},{"class":211,"line":293},10,[295],{"type":48,"tag":209,"props":296,"children":297},{},[298],{"type":65,"value":299},"      \u003CNotification>\n",{"type":48,"tag":209,"props":301,"children":303},{"class":211,"line":302},11,[304],{"type":48,"tag":209,"props":305,"children":306},{},[307],{"type":65,"value":308},"        \u003CId>04l5g00000AbCdEAAV\u003C/Id>\n",{"type":48,"tag":209,"props":310,"children":312},{"class":211,"line":311},12,[313],{"type":48,"tag":209,"props":314,"children":315},{},[316],{"type":65,"value":317},"        \u003CsObject xsi:type=\"sf:Opportunity\" xmlns:sf=\"urn:sobject.enterprise.soap.sforce.com\">\n",{"type":48,"tag":209,"props":319,"children":321},{"class":211,"line":320},13,[322],{"type":48,"tag":209,"props":323,"children":324},{},[325],{"type":65,"value":326},"          \u003Csf:Id>0065g00000QwErTAAZ\u003C/sf:Id>\n",{"type":48,"tag":209,"props":328,"children":330},{"class":211,"line":329},14,[331],{"type":48,"tag":209,"props":332,"children":333},{},[334],{"type":65,"value":335},"          \u003Csf:StageName>Closed Won\u003C/sf:StageName>\n",{"type":48,"tag":209,"props":337,"children":339},{"class":211,"line":338},15,[340],{"type":48,"tag":209,"props":341,"children":342},{},[343],{"type":65,"value":344},"          \u003Csf:Amount>48000.0\u003C/sf:Amount>\n",{"type":48,"tag":209,"props":346,"children":348},{"class":211,"line":347},16,[349],{"type":48,"tag":209,"props":350,"children":351},{},[352],{"type":65,"value":353},"        \u003C/sObject>\n",{"type":48,"tag":209,"props":355,"children":357},{"class":211,"line":356},17,[358],{"type":48,"tag":209,"props":359,"children":360},{},[361],{"type":65,"value":362},"      \u003C/Notification>\n",{"type":48,"tag":209,"props":364,"children":366},{"class":211,"line":365},18,[367],{"type":48,"tag":209,"props":368,"children":369},{},[370],{"type":65,"value":371},"    \u003C/notifications>\n",{"type":48,"tag":209,"props":373,"children":375},{"class":211,"line":374},19,[376],{"type":48,"tag":209,"props":377,"children":378},{},[379],{"type":65,"value":380},"  \u003C/soapenv:Body>\n",{"type":48,"tag":209,"props":382,"children":384},{"class":211,"line":383},20,[385],{"type":48,"tag":209,"props":386,"children":387},{},[388],{"type":65,"value":389},"\u003C/soapenv:Envelope>\n",{"type":48,"tag":49,"props":391,"children":392},{},[393,395,400],{"type":65,"value":394},"Leave ",{"type":48,"tag":61,"props":396,"children":397},{},[398],{"type":65,"value":399},"Send Session ID",{"type":65,"value":401}," unchecked unless the listener really has to call back into Salesforce as that user. A session ID is a live credential, and it would be stored anywhere the message is logged.",{"type":48,"tag":187,"props":403,"children":405},{"id":404},"the-acknowledgement",[406],{"type":65,"value":407},"The acknowledgement",{"type":48,"tag":49,"props":409,"children":410},{},[411,413,419,421,426,428,434,436,443],{"type":65,"value":412},"The listener must answer with a ",{"type":48,"tag":68,"props":414,"children":416},{"className":415},[],[417],{"type":65,"value":418},"notificationsResponse",{"type":65,"value":420}," whose ",{"type":48,"tag":68,"props":422,"children":424},{"className":423},[],[425],{"type":65,"value":73},{"type":65,"value":427}," is ",{"type":48,"tag":68,"props":429,"children":431},{"className":430},[],[432],{"type":65,"value":433},"true",{"type":65,"value":435}," (",{"type":48,"tag":128,"props":437,"children":440},{"href":438,"rel":439},"https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_om_outboundmessaging_wsdl.htm",[132],[441],{"type":65,"value":442},"WSDL reference",{"type":65,"value":444},"):",{"type":48,"tag":199,"props":446,"children":448},{"className":201,"code":447,"language":203,"meta":7,"style":7},"\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003Csoapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">\n  \u003Csoapenv:Body>\n    \u003CnotificationsResponse xmlns=\"http://soap.sforce.com/2005/09/outbound\">\n      \u003CAck>true\u003C/Ack>\n    \u003C/notificationsResponse>\n  \u003C/soapenv:Body>\n\u003C/soapenv:Envelope>\n",[449],{"type":48,"tag":68,"props":450,"children":451},{"__ignoreMap":7},[452,460,468,475,483,491,499,506],{"type":48,"tag":209,"props":453,"children":454},{"class":211,"line":212},[455],{"type":48,"tag":209,"props":456,"children":457},{},[458],{"type":65,"value":459},"\u003C?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",{"type":48,"tag":209,"props":461,"children":462},{"class":211,"line":221},[463],{"type":48,"tag":209,"props":464,"children":465},{},[466],{"type":65,"value":467},"\u003Csoapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">\n",{"type":48,"tag":209,"props":469,"children":470},{"class":211,"line":230},[471],{"type":48,"tag":209,"props":472,"children":473},{},[474],{"type":65,"value":236},{"type":48,"tag":209,"props":476,"children":477},{"class":211,"line":239},[478],{"type":48,"tag":209,"props":479,"children":480},{},[481],{"type":65,"value":482},"    \u003CnotificationsResponse xmlns=\"http://soap.sforce.com/2005/09/outbound\">\n",{"type":48,"tag":209,"props":484,"children":485},{"class":211,"line":248},[486],{"type":48,"tag":209,"props":487,"children":488},{},[489],{"type":65,"value":490},"      \u003CAck>true\u003C/Ack>\n",{"type":48,"tag":209,"props":492,"children":493},{"class":211,"line":257},[494],{"type":48,"tag":209,"props":495,"children":496},{},[497],{"type":65,"value":498},"    \u003C/notificationsResponse>\n",{"type":48,"tag":209,"props":500,"children":501},{"class":211,"line":266},[502],{"type":48,"tag":209,"props":503,"children":504},{},[505],{"type":65,"value":380},{"type":48,"tag":209,"props":507,"children":508},{"class":211,"line":275},[509],{"type":48,"tag":209,"props":510,"children":511},{},[512],{"type":65,"value":389},{"type":48,"tag":49,"props":514,"children":515},{},[516,518,524,526,531],{"type":65,"value":517},"A bare ",{"type":48,"tag":68,"props":519,"children":521},{"className":520},[],[522],{"type":65,"value":523},"200 OK",{"type":65,"value":525}," isn't enough. Without the ",{"type":48,"tag":68,"props":527,"children":529},{"className":528},[],[530],{"type":65,"value":73},{"type":65,"value":532},", Salesforce treats the delivery as failed and keeps retrying, which is the most common reason the outbound message queue fills up.",{"type":48,"tag":79,"props":534,"children":536},{"id":535},"the-firewall-problem",[537],{"type":65,"value":538},"The firewall problem",{"type":48,"tag":49,"props":540,"children":541},{},[542],{"type":65,"value":543},"Outbound messages come from Salesforce's cloud, so the endpoint has to be reachable from the internet. If the system that should act on them (an order-management system, a billing engine, an on-prem data hub) sits on a private network, the usual options are a DMZ listener with an inbound NAT rule, or middleware hosted somewhere public that forwards inward. Both mean a public, SOAP-speaking endpoint that you build, secure and keep running.",{"type":48,"tag":79,"props":545,"children":547},{"id":546},"receive-outbound-messages-on-an-internal-server-with-webhook-relay",[548],{"type":65,"value":549},"Receive outbound messages on an internal server with Webhook Relay",{"type":48,"tag":187,"props":551,"children":553},{"id":552},"_1-start-the-agent-inside-your-network",[554],{"type":65,"value":555},"1. Start the agent inside your network",{"type":48,"tag":49,"props":557,"children":558},{},[559,561,567],{"type":65,"value":560},"On a host that can reach your listener, ",{"type":48,"tag":128,"props":562,"children":564},{"href":563},"/docs/installation/cli/",[565],{"type":65,"value":566},"install the relay CLI",{"type":65,"value":568},", log in, and run:",{"type":48,"tag":199,"props":570,"children":574},{"className":571,"code":572,"language":573,"meta":7,"style":7},"language-bash shiki shiki-themes github-dark","relay forward --bucket salesforce-om http://soap-listener.internal:8080/salesforce/outbound\n","bash",[575],{"type":48,"tag":68,"props":576,"children":577},{"__ignoreMap":7},[578],{"type":48,"tag":209,"props":579,"children":580},{"class":211,"line":212},[581,587,593,599,604],{"type":48,"tag":209,"props":582,"children":584},{"style":583},"--shiki-default:#B392F0",[585],{"type":65,"value":586},"relay",{"type":48,"tag":209,"props":588,"children":590},{"style":589},"--shiki-default:#9ECBFF",[591],{"type":65,"value":592}," forward",{"type":48,"tag":209,"props":594,"children":596},{"style":595},"--shiki-default:#79B8FF",[597],{"type":65,"value":598}," --bucket",{"type":48,"tag":209,"props":600,"children":601},{"style":589},[602],{"type":65,"value":603}," salesforce-om",{"type":48,"tag":209,"props":605,"children":606},{"style":589},[607],{"type":65,"value":608}," http://soap-listener.internal:8080/salesforce/outbound\n",{"type":48,"tag":49,"props":610,"children":611},{},[612,614,620,622,628,630,636],{"type":65,"value":613},"The command creates the bucket, prints its public HTTPS input URL, and starts the agent. The agent only connects out (through a corporate ",{"type":48,"tag":128,"props":615,"children":617},{"href":616},"/docs/installation/behind-proxy/",[618],{"type":65,"value":619},"HTTP proxy",{"type":65,"value":621}," if you have one). For production, run it as a ",{"type":48,"tag":128,"props":623,"children":625},{"href":624},"/docs/installation/docker/",[626],{"type":65,"value":627},"Docker container",{"type":65,"value":629},", a system service, or in Kubernetes with the ",{"type":48,"tag":128,"props":631,"children":633},{"href":632},"/docs/installation/kubernetes/",[634],{"type":65,"value":635},"operator",{"type":65,"value":75},{"type":48,"tag":187,"props":638,"children":640},{"id":639},"_2-make-the-input-return-the-soap-ack",[641],{"type":65,"value":642},"2. Make the input return the SOAP Ack",{"type":48,"tag":49,"props":644,"children":645},{},[646,648,653,654,660],{"type":65,"value":647},"Outbound messages can't carry custom auth headers, so the acknowledgement is what matters at the edge. In the bucket, open the input's ",{"type":48,"tag":61,"props":649,"children":650},{},[651],{"type":65,"value":652},"Response Configuration",{"type":65,"value":435},{"type":48,"tag":128,"props":655,"children":657},{"href":656},"/docs/webhooks/custom-webhook-response/",[658],{"type":65,"value":659},"docs",{"type":65,"value":661},") and choose one of two modes:",{"type":48,"tag":98,"props":663,"children":664},{},[665,706],{"type":48,"tag":102,"props":666,"children":667},{},[668,673,675,681,683,689,691,696,698,704],{"type":48,"tag":61,"props":669,"children":670},{},[671],{"type":65,"value":672},"Static response",{"type":65,"value":674}," (simplest): status ",{"type":48,"tag":68,"props":676,"children":678},{"className":677},[],[679],{"type":65,"value":680},"200",{"type":65,"value":682},", header ",{"type":48,"tag":68,"props":684,"children":686},{"className":685},[],[687],{"type":65,"value":688},"Content-Type: text/xml; charset=utf-8",{"type":65,"value":690},", and the ",{"type":48,"tag":68,"props":692,"children":694},{"className":693},[],[695],{"type":65,"value":73},{"type":65,"value":697}," envelope above as the body. Salesforce sees a successful delivery as soon as Webhook Relay has stored the message, and Webhook Relay takes over delivery to your network. Its ",{"type":48,"tag":128,"props":699,"children":701},{"href":700},"/features/durable-retries/",[702],{"type":65,"value":703},"durable retries",{"type":65,"value":705}," run for up to 30 days, compared with Salesforce's 24 hours.",{"type":48,"tag":102,"props":707,"children":708},{},[709,714,716,721],{"type":48,"tag":61,"props":710,"children":711},{},[712],{"type":65,"value":713},"Dynamic response from the output",{"type":65,"value":715},": Webhook Relay returns whatever your internal listener answers, as long as it responds within 10 seconds. Use this if the listener should decide whether to ",{"type":48,"tag":68,"props":717,"children":719},{"className":718},[],[720],{"type":65,"value":73},{"type":65,"value":722},", for example to make Salesforce retry when a downstream system rejects the record.",{"type":48,"tag":187,"props":724,"children":726},{"id":725},"_3-point-the-outbound-message-at-the-input",[727],{"type":65,"value":728},"3. Point the outbound message at the input",{"type":48,"tag":49,"props":730,"children":731},{},[732,734,739],{"type":65,"value":733},"Paste the input URL into the outbound message's ",{"type":48,"tag":61,"props":735,"children":736},{},[737],{"type":65,"value":738},"Endpoint URL",{"type":65,"value":740},", then fire the flow on a test record. The request log shows the SOAP envelope Salesforce sent, the response that went back, and your listener's reply.",{"type":48,"tag":187,"props":742,"children":744},{"id":743},"_4-check-the-sender",[745],{"type":65,"value":746},"4. Check the sender",{"type":48,"tag":98,"props":748,"children":749},{},[750,785],{"type":48,"tag":102,"props":751,"children":752},{},[753,758,760,767,769,775,777,783],{"type":48,"tag":61,"props":754,"children":755},{},[756],{"type":65,"value":757},"Source IPs.",{"type":65,"value":759}," Salesforce publishes its outbound ranges at ",{"type":48,"tag":128,"props":761,"children":764},{"href":762,"rel":763},"https://ip-ranges.salesforce.com/ip-ranges.json",[132],[765],{"type":65,"value":766},"ip-ranges.salesforce.com/ip-ranges.json",{"type":65,"value":768}," and states there are no static IPs for individual instances. Put the ranges in the input's ",{"type":48,"tag":128,"props":770,"children":772},{"href":771},"/features/ip-allowlist/",[773],{"type":65,"value":774},"source IP allowlist",{"type":65,"value":776}," to reject everything else with a ",{"type":48,"tag":68,"props":778,"children":780},{"className":779},[],[781],{"type":65,"value":782},"403",{"type":65,"value":784}," before it's stored.",{"type":48,"tag":102,"props":786,"children":787},{},[788,793,795,801,803,929,933,935,946],{"type":48,"tag":61,"props":789,"children":790},{},[791],{"type":65,"value":792},"Your org only.",{"type":65,"value":794}," Attach a small ",{"type":48,"tag":128,"props":796,"children":798},{"href":797},"/features/transform-webhooks/",[799],{"type":65,"value":800},"function",{"type":65,"value":802}," to the output that drops messages from any other org:",{"type":48,"tag":199,"props":804,"children":808},{"className":805,"code":806,"language":807,"meta":7,"style":7},"language-javascript shiki shiki-themes github-dark","const ORG_ID = \"00D5g000000AbCdEAF\" // your 18-character org ID\nif (!r.body.includes(\"\u003COrganizationId>\" + ORG_ID + \"\u003C/OrganizationId>\")) {\n  r.stopForwarding()\n}\n","javascript",[809],{"type":48,"tag":68,"props":810,"children":811},{"__ignoreMap":7},[812,842,903,921],{"type":48,"tag":209,"props":813,"children":814},{"class":211,"line":212},[815,821,826,831,836],{"type":48,"tag":209,"props":816,"children":818},{"style":817},"--shiki-default:#F97583",[819],{"type":65,"value":820},"const",{"type":48,"tag":209,"props":822,"children":823},{"style":595},[824],{"type":65,"value":825}," ORG_ID",{"type":48,"tag":209,"props":827,"children":828},{"style":817},[829],{"type":65,"value":830}," =",{"type":48,"tag":209,"props":832,"children":833},{"style":589},[834],{"type":65,"value":835}," \"00D5g000000AbCdEAF\"",{"type":48,"tag":209,"props":837,"children":839},{"style":838},"--shiki-default:#6A737D",[840],{"type":65,"value":841}," // your 18-character org ID\n",{"type":48,"tag":209,"props":843,"children":844},{"class":211,"line":221},[845,850,855,860,865,870,875,880,885,889,893,898],{"type":48,"tag":209,"props":846,"children":847},{"style":817},[848],{"type":65,"value":849},"if",{"type":48,"tag":209,"props":851,"children":853},{"style":852},"--shiki-default:#E1E4E8",[854],{"type":65,"value":435},{"type":48,"tag":209,"props":856,"children":857},{"style":817},[858],{"type":65,"value":859},"!",{"type":48,"tag":209,"props":861,"children":862},{"style":852},[863],{"type":65,"value":864},"r.body.",{"type":48,"tag":209,"props":866,"children":867},{"style":583},[868],{"type":65,"value":869},"includes",{"type":48,"tag":209,"props":871,"children":872},{"style":852},[873],{"type":65,"value":874},"(",{"type":48,"tag":209,"props":876,"children":877},{"style":589},[878],{"type":65,"value":879},"\"\u003COrganizationId>\"",{"type":48,"tag":209,"props":881,"children":882},{"style":817},[883],{"type":65,"value":884}," +",{"type":48,"tag":209,"props":886,"children":887},{"style":595},[888],{"type":65,"value":825},{"type":48,"tag":209,"props":890,"children":891},{"style":817},[892],{"type":65,"value":884},{"type":48,"tag":209,"props":894,"children":895},{"style":589},[896],{"type":65,"value":897}," \"\u003C/OrganizationId>\"",{"type":48,"tag":209,"props":899,"children":900},{"style":852},[901],{"type":65,"value":902},")) {\n",{"type":48,"tag":209,"props":904,"children":905},{"class":211,"line":230},[906,911,916],{"type":48,"tag":209,"props":907,"children":908},{"style":852},[909],{"type":65,"value":910},"  r.",{"type":48,"tag":209,"props":912,"children":913},{"style":583},[914],{"type":65,"value":915},"stopForwarding",{"type":48,"tag":209,"props":917,"children":918},{"style":852},[919],{"type":65,"value":920},"()\n",{"type":48,"tag":209,"props":922,"children":923},{"class":211,"line":239},[924],{"type":48,"tag":209,"props":925,"children":926},{"style":852},[927],{"type":65,"value":928},"}\n",{"type":48,"tag":930,"props":931,"children":932},"br",{},[],{"type":65,"value":934},"The same function can turn the SOAP XML into JSON with the ",{"type":48,"tag":128,"props":936,"children":938},{"href":937},"/docs/webhooks/functions/helper-libraries/",[939,944],{"type":48,"tag":68,"props":940,"children":942},{"className":941},[],[943],{"type":65,"value":203},{"type":65,"value":945}," helper library",{"type":65,"value":947}," if your internal service would rather not parse SOAP.",{"type":48,"tag":79,"props":949,"children":951},{"id":950},"production-checklist",[952],{"type":65,"value":953},"Production checklist",{"type":48,"tag":98,"props":955,"children":956},{},[957,973,983,1001,1011],{"type":48,"tag":102,"props":958,"children":959},{},[960,971],{"type":48,"tag":61,"props":961,"children":962},{},[963,965,970],{"type":65,"value":964},"Dedupe on the notification ",{"type":48,"tag":68,"props":966,"children":968},{"className":967},[],[969],{"type":65,"value":174},{"type":65,"value":75},{"type":65,"value":972}," Salesforce can send a message more than once, and retries on either side can too.",{"type":48,"tag":102,"props":974,"children":975},{},[976,981],{"type":48,"tag":61,"props":977,"children":978},{},[979],{"type":65,"value":980},"Don't rely on order.",{"type":65,"value":982}," Compare a timestamp or version field on the record before you overwrite newer data.",{"type":48,"tag":102,"props":984,"children":985},{},[986,991,993,999],{"type":48,"tag":61,"props":987,"children":988},{},[989],{"type":65,"value":990},"Expect batches.",{"type":65,"value":992}," One envelope can hold up to 100 ",{"type":48,"tag":68,"props":994,"children":996},{"className":995},[],[997],{"type":65,"value":998},"Notification",{"type":65,"value":1000}," elements.",{"type":48,"tag":102,"props":1002,"children":1003},{},[1004,1009],{"type":48,"tag":61,"props":1005,"children":1006},{},[1007],{"type":65,"value":1008},"Replay instead of re-saving records.",{"type":65,"value":1010}," Resend any stored message from the bucket log while you debug the listener, rather than editing Salesforce records to trigger the flow again.",{"type":48,"tag":102,"props":1012,"children":1013},{},[1014,1019],{"type":48,"tag":61,"props":1015,"children":1016},{},[1017],{"type":65,"value":1018},"Fan out.",{"type":65,"value":1020}," Add outputs, or agents in other sites, to send the same message to several internal systems.",{"type":48,"tag":79,"props":1022,"children":1024},{"id":1023},"related",[1025],{"type":65,"value":1026},"Related",{"type":48,"tag":98,"props":1028,"children":1029},{},[1030,1041,1052,1071,1082],{"type":48,"tag":102,"props":1031,"children":1032},{},[1033,1039],{"type":48,"tag":128,"props":1034,"children":1036},{"href":1035},"/features/webhook-to-internal-server/",[1037],{"type":65,"value":1038},"Webhooks to internal servers",{"type":65,"value":1040},": how the relay agent works.",{"type":48,"tag":102,"props":1042,"children":1043},{},[1044,1050],{"type":48,"tag":128,"props":1045,"children":1047},{"href":1046},"/blog/webhook-to-salesforce/",[1048],{"type":65,"value":1049},"Send a webhook to Salesforce",{"type":65,"value":1051},": the opposite direction, from any webhook into the Salesforce API.",{"type":48,"tag":102,"props":1053,"children":1054},{},[1055,1061,1063,1069],{"type":48,"tag":128,"props":1056,"children":1058},{"href":1057},"/blog/servicenow-webhooks/",[1059],{"type":65,"value":1060},"ServiceNow webhooks",{"type":65,"value":1062}," and ",{"type":48,"tag":128,"props":1064,"children":1066},{"href":1065},"/blog/netsuite-webhooks/",[1067],{"type":65,"value":1068},"NetSuite webhooks",{"type":65,"value":1070},": the same pattern for other enterprise systems.",{"type":48,"tag":102,"props":1072,"children":1073},{},[1074,1080],{"type":48,"tag":128,"props":1075,"children":1077},{"href":1076},"/blog/azure-relay-alternative/",[1078],{"type":65,"value":1079},"Azure Relay alternative",{"type":65,"value":1081},": Hybrid Connections compared for on-prem delivery.",{"type":48,"tag":102,"props":1083,"children":1084},{},[1085,1087,1093],{"type":65,"value":1086},"Buying for a company? The ",{"type":48,"tag":128,"props":1088,"children":1090},{"href":1089},"/enterprise/",[1091],{"type":65,"value":1092},"enterprise page",{"type":65,"value":1094}," covers SOC 2 Type II, SSO, security reviews and annual billing by invoice and purchase order.",{"type":48,"tag":1096,"props":1097,"children":1098},"style",{},[1099],{"type":65,"value":1100},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":230,"depth":230,"links":1102},[1103,1107,1108,1114,1115],{"id":81,"depth":221,"text":84,"children":1104},[1105,1106],{"id":189,"depth":230,"text":192},{"id":404,"depth":230,"text":407},{"id":535,"depth":221,"text":538},{"id":546,"depth":221,"text":549,"children":1109},[1110,1111,1112,1113],{"id":552,"depth":230,"text":555},{"id":639,"depth":230,"text":642},{"id":725,"depth":230,"text":728},{"id":743,"depth":230,"text":746},{"id":950,"depth":221,"text":953},{"id":1023,"depth":221,"text":1026},"markdown","content:blog:salesforce-outbound-messages.md","content","blog/salesforce-outbound-messages.md","blog/salesforce-outbound-messages","md",{"loc":4},1794984484849]