Saturday, 27 October 2018

Oracle Integration Cloud: CRUD Operation (Delete) using Salesforce Adapter (Part-5)

This article in the continuation of the series in which we are performing CRUD operation.

In this fifth and last part of the series, we'll demonstrate how the Delete employees details from SFDC  using Salesforce adapter in Integration Cloud.

Use Case: Expose a REST API in Integration Cloud which will Delete the employee details from SFDC

Others part of the Series

                                                                                                  



The integration will look like POST completion


Let's get started and complete the DELETE operation
  • Create an Integration and Select the App Driven Orchestration pattern
  • Provide the integration name as DeleteEmployee
  • Drop or Select the REST connection on the integration canvas as a Trigger point
  • Provide the information as below and click the Next button
    • What do you want to call your endpoint: DeleteEmployee
    • What is the endpoint's relative resource URI?: /employees/{employeeid}
    • What action do you want to perform on this endpoint: DELETE
  • Click the Next button without any change here
  • Drop an SFDC adapter just below the REST adapter
  • Enter below information and click the Next button
    • What do you want to call your endpoint?: RemoveEmployee
    • Check the Standard applications delivered by Salesforce.com checkbox
  •  Enter below information and click the Next button
    • Select CRUD, delete operation from the Operation Type drop down
    • Search the SFDC object(employee) and move the Employee__c object to the selected pane
  •  Edit the ModifyEmployee mapper and map the element as below
    • TemplateParameter (employeeid) --> ids
  • Integration is completed now. Save and Activate the integration
  • Let's test the integration via the POSTMAN tool. Enter the REST endpoint URL and Submit button
  • Open SFDC custom object and see the Employee should be deleted

No comments:

Post a Comment