Anypoint Salesforce Connector With Mulesoft
-
Upload
jitendra-bafna -
Category
Software
-
view
127 -
download
1
Transcript of Anypoint Salesforce Connector With Mulesoft
SALESFORCE CONNECTOR WITH MULE
Salesforce Connector is secure way of connecting and accessing the data from a
Mule application. It handles all the five way of integrating Salesforce. It is
capable of performing all the operations exposed by Salesforce via four of
their API's.
SALESFORCE CONNECTOR WITH MULE
Create Salesforce account if you don't have any.
Reset Security Token. Go to My Settings< Personal < Reset My Security Token.
Click on Reset Security Token button and it will send security token on your
registered email.
SALESFORCE CONNECTOR WITH MULE
We will going to discuss how to create Account record in Salesforce using Basic
Authentication from Mule Application.
Create Accounts View With Postal Code in Salesforce
• Login Salesforce, Go to Accounts < Create New View. Enter the view
name "All Accounts with Postal Code" and then go to Select Fields to
Display.
• Remove all default fields available in Selected Fields and add Billing
State/Province, Billing Street, Billing City, Billing Zip/Postal Code, Billing
Country, Account Name.
SALESFORCE CONNECTOR WITH MULE
Designing the Mule Flow using Anypoint Studio
You can use HTTP Listener to receive message and transform input
message using DataWeave in required format to create Accounts with Postal
Code in Salesforce.
SALESFORCE CONNECTOR WITH MULE
First configure the Salesforce connector and then place TransformMessage
component before Salesforce connector as it will generate output metadata for
TransformMessage automatically depending on configuration we have done for
Salesforce connector. Now set Operation to Create as you want to create
Accounts with Postal Code in Salesforce, sObjectType to Account and click on
Add Connector Configuration. It will open another window, select
Salesforce:Basic Authentication and you need to provide your Salesforce
account details like username and password with Security Token that you have
received on your email id. You can validate your configuration by clicking on
button Validate Configuration and finally press OK.
SALESFORCE CONNECTOR WITH MULE
In TransformMessage set up input metadata and output metadata will be
generated as explained in this previous slides.
TESTING MULE APPLICATION
You can use Postman to post the message to Mule Application and it will
transform the message and create account in Salesforce.
TESTING MULE APPLICATION
Now you can login to Salesforce and verify if account has been created.
Input message can be used for testing
{"Name":"Donald Cook","BillingStreet":"Baker
Street","BillingCity":"Mumbai","BillingState":"Maharashtra","BillingCountry":"India","BillingPostalCode":"400710"}
SUMMARY
Similarly you can peform various operation like querying, updating, deleting the
records and many other operation. It also provide facility known as
QueryBuilder to generate your query to read data from Salesforce.