Upload
ravi-mishra
View
241
Download
5
Embed Size (px)
Citation preview
Connecting to Salesforce and using Database in Mule ESB
Ravi S Mishra
Create the Endpoint
• You have to open the Anypoint Studio and pick an endpoint (e.g HTTP).• Once you select the endpoint you have to configure it. Below screenshot will give your reference for the
same.• The endpoint needs to be configured by providing the path and port.
Configure the Salesforce account
• Before using the salesforce component you should have a salesforce account.• Once you login with your credentials you will get a security token which will be used while configuring the
salesforce component.• After logging in to salesforce website go to account tab and click on create view tab. You can add your own
choice of fields from the list. The fields you select would be visible in the default data set available on salesforce website.
Configuring Salesforce component• Provide the security token you would have received in mail.• Configure the salesforce component as mentioned below with correct credentials.• Once you provide the required input just test the connection.• You can provide a query about the fields you want to see in the resultset. The data is being retrieved from
default data available in your salesforce account.
• Complete your flow by putting an Object to JSON component so that you can see the results in a readable format.
• Run the flow by calling the path and port you have mentioned in HTTP endpoint.