How To Send Outbound Message From Flow in Salesforce

Here is a step-by-step guide on how to send Outbound Message from a Flow in Salesforce. Salesforce introduced the capability to send it from Flows in its Winter '22 Release. Before this the only option to send outbound message was from Workflow Rules.

So, what is an Outbound Message in Salesforce?

Outbound Message is one of the declarative features of Salesforce that you can use to integrate Salesforce with other external systems. The concept is simple. Whenever a record gets created or updated in Salesforce, send a SOAP API message to an external system.

A common use case is to create/update Account records in backend systems like ERP, Order Management System or Logistics System, whenever a new Account gets created or an existing Account gets updated in Salesforce.

And the beauty of this feature is that it is a declarative configuration, that won't take more than 10-15 minutes.

How to send Outbound Message?

Configuring Outbound Messages is a two-step process:

  1. In the first step, define the outbound message, where you will select the object, fields from the object and specify an endpoint URL.

  2. In the second step, define what will fire this outbound message. There are two main features in Salesforce that allow you to run automations on record creation/updation.

    1. Salesforce Flow

    2. Apex Trigger

Salesforce Flow is a declarative point-and-click took, where as Apex trigger requires writing code.

In this guide, we will take a look at how to send outbound messages from the Flow.

For the endpoint URL, we are going to use a service called RequestBin. RequestBin allows you to create public endpoint to receive and inspect HTTP requests from any source, and easily inspect the headers, payload and more.

Here is a picture from Salesforce's SOAP API Developer Guide explaining the flow of Outbound Message (just for your reference)

Salesforce Outbound Message Flow (Source: SOAP API Developer Guide)

Here is the graphical representation of what we will be building in this guide.

And here is the detailed step-by-step guide with screenshots.

References & Useful URLs



Your thoughts matter! Drop a comment if you found this useful 👇