Salesforce Certified Platform Developer II — Question 252
A company processes Orders within their Salesforce instance. When an Order's status changes to 'Paid' it must notify the company's order management system
(OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce.
What is the optimal method to implement this?
Answer options
- A. Generate the Enterprise WSDL and use it to make a callout to the OMS.
- B. Generate the Partner WSDL and use it to make a callout to the OMS.
- C. Create an Outbound Message that contains the session ID and send it to the OMS.
- D. Create an Apex trigger and make a callout to the OMS from the trigger.
Correct answer: C
Explanation
The correct answer is C because an Outbound Message is specifically designed for sending data to external systems like the OMS when certain criteria are met, such as a status change. The other options involve direct callouts or generating WSDLs, which are not as efficient for event-driven notifications in this case.