For Salesforce admins in Docs Made Easy Pro: when a document is ready, tell another system about it automatically. An outbound message sends record data, along with document details or a document URL, to an external system such as an ERP, an accounting tool or a document archive, when a flow or approval process triggers it. Setup takes about 20 minutes once the receiving system is ready.

Outbound Message was added in Docs Made Easy Pro v1.9.0. Outbound messages themselves are a standard Salesforce feature; the steps in Setup, Flow Builder and approval processes below are Salesforce's.

Before you begin

  • Docs Made Easy Pro v1.9.0 or later. Outbound Message isn't part of Basic (DME-LIC-002 means a feature isn't in your license). See Compare editions.
  • A document solution that works when you click its button on a record. If you generate with Flow, see Automate document generation with Flow.
  • An endpoint in the receiving system. It must be an HTTPS URL that accepts Salesforce outbound messages (SOAP) and returns an acknowledgment. The team that owns that system builds it from the WSDL that Salesforce gives you in step 6.
  • Fields for the document details on the object the outbound message uses, for example a URL field for the document link. You create these fields yourself in Object Manager.
  • Salesforce permissions: Customize Application to create outbound messages, and Manage Flow or access to approval processes.

You create a standard Salesforce outbound message. Docs Made Easy doesn't ship a ready-made one.

How it works

  1. A flow or approval process reaches the step that has the outbound message action.
  2. Salesforce builds a SOAP message with the fields you chose, including the document details or URL, and sends it to the endpoint.
  3. The receiving system replies with an acknowledgment. If it doesn't, Salesforce keeps the message in a queue and retries it for up to 24 hours.

The record and the outbound message must be on the same object. Salesforce sends only the fields you select, so the external system receives nothing else from your org.

Create the outbound message

  1. In Setup, enter Outbound Messages in Quick Find and select Outbound Messages under Workflow Actions (or Process Automation). If an introduction page appears, click Continue.
  2. Click New Outbound Message, select the object, and click Next.
  3. Enter a Name, for example Send invoice to ERP. The Unique Name fills in automatically.
  4. Enter the Endpoint URL from the receiving system, for example https://erp.example.com/salesforce/invoices.
  5. In User to send as, choose the user whose access Salesforce uses to read the fields. A dedicated integration user is safer than a named person.
  6. Under Fields to Send, add the record fields the receiving system needs, plus the fields that hold the document details or URL. Click Save.
  7. On the saved outbound message, click Click for WSDL and send the WSDL to the team that owns the endpoint, so they can parse the message.

The document URL isn't public. Anyone who opens it, including the receiving system, needs a Salesforce session. See Security and data handling.

Trigger it from a flow or an approval process

From a record-triggered flow:

  1. Open the record-triggered flow for the same object, or create one. See Automate document generation with Flow for the start conditions, for example Stage Equals Closed Won and Stage Is Changed True.
  2. Add an Action element, search for your outbound message by name, select it, and click Done.
  3. Save and activate the flow.

From an approval process:

  1. In Setup, open Approval Processes and select the process for the object.
  2. Under Final Approval Actions (or Initial Submission Actions or Final Rejection Actions), click Add Existing, choose Outbound Message, and select yours.
  3. Save. The message is sent when the approval reaches that stage.

If the same flow generates the document and sends the outbound message, the document solution must already exist. Before you activate the flow, check the solution's details (its ID, templates and output settings), so the flow can generate the document and then send the message.

Verify it worked

  1. Trigger the flow or approval on a test record, for example by setting an opportunity's Stage to Closed Won.
  2. Ask the receiving team to confirm that the message arrived with the record fields and the document details or URL. Delivery usually takes seconds, but Salesforce doesn't guarantee a time.
  3. In Setup, enter Outbound Messages in Quick Find and select Outbound Messages under Monitoring. An empty list means nothing is waiting: every message was delivered and acknowledged.

Troubleshooting

SymptomLikely causeFix
The message stays on the Monitoring page with a failure reasonThe endpoint is unreachable, its certificate isn't trusted, or it doesn't return an acknowledgmentFix the endpoint, then click Retry on the Monitoring page
Nothing is sent and nothing is queuedThe flow or approval step didn't run, or the action isn't on that pathCheck the flow's start conditions and run history, or the approval stage
The message arrives but the document URL or details are emptyThe document wasn't generated yet, or the field isn't in Fields to SendCheck that the document exists on the record (where documents are saved), then add the field
The receiving system rejects the message after you added fieldsIts parser uses an old WSDLSend the new WSDL from Click for WSDL
"Not available in your license"Your org has Basic, not ProDME-LIC-002
The flow ran but no document was createdGeneration failed in the backgroundFlow or bulk generation didn't produce a document

Next steps