Integration with Salesforce using Mule ESB

8
www.sanjeetpandey.com www.sanjeetpandey.com Prepared by – Sanjeet Pandey Integration with Salesforce using Mule ESB

Transcript of Integration with Salesforce using Mule ESB

Page 1: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com

www.sanjeetpandey.com

Prepared by – Sanjeet Pandey

Integration with Salesforce using Mule ESB

Page 2: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com

Overview

- MuleSoft provides the most widely used integration platform to connect any application, data service or API, across the cloud and on-premise continuum.

- The Salesforce connector establishes connection to Salesforce system using SOAP web service (provided by Salesforce). Almost every operation that can be done via the Salesforce's API can be done thru this connector. This connector will also work if your Salesforce objects are customized with additional fields or even you are working with custom objects. The connector supports the option to configure Salesforce connection details, connection pooling and max limit of active connections.

2

Page 3: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com

Prerequisites

• Salesforce Account • Salesforce User Name , Password and Security Token • Mule Anypoint Salesforce Cloud Connector

3

Page 4: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com

Mule Anypoint Salesforce Connector

Configuration: This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.

Connection Pool : Salesforce connector offers automatic connection management via the use of a connection pool. The pool will act a storage mechanism for all the connections that are in-use by the user of this connector.

Reconnection Strategies : Reconnection Strategies specify how a connector behaves when its connection fails. You can control how Mule attempts to reconnect by specifying a number of criteria

4

Page 5: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com

Mule flow

• Steps to be followed for integrating ‘Salesforce' with MuleSoft Applications:• Create a new Anypoint Studio Project and Flow.• Before using the Salesforce Connector in the Mule Flows, create a global element for

Salesforce configuration which can be reused in all other flows across the Mule project - wherever the objects are created & deleted to & from Salesforce cloud server.

5

Page 6: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com

Mule Flow (cont.)

• Configure the Salesforce connector by providing the following information for the global

element – User Name– Password– Security Token

• Use HTTP outbound endpoint to pass the input details to the Salesforce connector• Configure the Salesforce endpoint by providing the following to create the Account under

Salesforce – link to the ‘global Connector Configuration’– Operation

6

Page 7: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com

Mule Flow (cont.)

Mule XML -

7

Page 8: Integration with Salesforce using Mule ESB

www.sanjeetpandey.com 8