Calling Web Services with Outbound Message

 


Outbound Messages:

Get In Touch

Outbound messaging allows you to specify that changes to fields within Salesforce can cause messages with field values to be sent to designated external servers.

Outbound messaging is part of the workflow rule functionality in Salesforce. Workflow rules watch for specific kinds of field changes and trigger automatic Salesforce actions, such as sending email alerts, creating task records, or sending an outbound message.

Salesforce offers a point-and-click capability to integrate systems using Outbound Messages, this is a great capability of the platform without any major governor limits.

Outbound Messages work on SOAP protocol and do not provide any capability to add an authentication mechanism, but they proved the capability to include a session Id within the request body.

So we need an open endpoint on salesforce that can accept a request without authentication, this can be achieved but leveraging force.com sites which are usually used to create a public site.

Things to remember for web-service call

  • Outbound messaging uses the notifications()call to send SOAP messages over HTTP(S) to a designated endpoint when triggered by a workflow rule.
  • A single SOAP message can include up to 100 notifications. Each notification contains the object ID and a reference to the associated sObject Note that if the information in the object changes after the notification is queued but before it is sent, only the updated information will be delivered.
  • If you issue multiple discrete calls, the calls may be batched together into one or more SOAP messages.

Metadata for web-service call

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 once 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.

See an example that is used to call a web service with Outbound Messages. Read more!!


Comments

Followers

Popular posts from this blog

Unleashing the Power of Digital Marketing Advertising with Alt Digital Technologies

Digital Transformation Consultant- Alt Digital Technologies

How are Digital Payment Trends Shaping the Future of E-Commerce?