Cook Book to create SFDC Configuration Project in Mule 3.6 and Above Using Query Builder. Purpose : This document Helps beginners to connect the Salesforce via Mule SFDC connector by using the new Data Senses Query Language and Query Builder. Pre-requisites: 1. Salesforce Developer Account ( with System Administrator Access) 2. After Successful Login, To Know your profile Go to My profile Logged UserRole 3. Note: With System Administrator Access, You can see Reset Security Token option. 4. Go to My settings PersonalReset My Security Token
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Cook Book to create SFDC Configuration Project in Mule 3.6 and Above Using Query Builder.
Purpose : This document Helps beginners to connect the Salesforce via Mule SFDC connector by using the new Data Senses Query Language and Query Builder.
Pre-requisites:
1. Salesforce Developer Account ( with System Administrator Access)
2. After Successful Login, To Know your profile Go to My profile Logged User Role3. Note: With System Administrator Access, You can see Reset Security Token option. 4. Go to My settings Personal Reset My Security Token
5. When Reset My Security Token pressed then New security token sent to registered email.
1. Create A Mule project in Anypoint Studio.
2. Create Global configuration for the salesforce connector and HTTP Listener (mule 3.6 and above). Configure Salesforce User ID, Password and the security Token.(Received in email)
3. Test Connection until it gets successful. ( Best practice is to give reference variables rather than hardcoding the values for future changes)
Configure HTTP configuration
Configure Salesforce component : Add the reference to the global SFDC connector.
Click on the Query Builder: Select the Type you trying to build the Query. It enables the fields to be selected.
In addition to the Query fields we can add the filters, Order By, Limit, Direction and offset.
<sfdc:query config-ref="Salesforce__Basic_authentication" query="dsql:SELECT AccountNumber,Id,Name FROM Account ORDER BY AccountNumber ASC LIMIT 5 OFFSET 1" doc:name="Salesforce"/>
<json:object-to-json-transformer doc:name="Object to JSON"/>