The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
A single SOAP message can include up to 100 notifications. Each notification contains the object ID and a reference to the associated sObject data. If the information in the object changes after the notification is queued but before it’s sent, only the latest data is delivered and not the intermediate changes.
If you issue multiple discrete calls, the calls are sometimes batched together into one or more SOAP messages.
Messages are queued locally. A separate background process performs the actual sending. To preserve message reliability:
Instead of polling, which was required in previous releases, you can now use outbound messaging to trigger execution logic when Salesforce raises an event. In previous versions of the API, client applications had to poll Salesforce to find out if relevant changes had occurred. Because most changes eventually trigger a workflow if a rule exists for it, you can use the workflow rule to trigger actions based on Salesforce events.
Note
The metadata needed for outbound messaging, including the definition of the notifications() call, which sends the outbound SOAP message to an external service, is in a separate WSDL. The WSDL is created and available from the Salesforce user interface after a workflow rule has been associated with an outbound message. The WSDL is bound to the outbound message and contains the instructions about how to reach the endpoint service and what data is sent to it. For more information about setting up outbound messaging, see Defining Outbound Messaging.