SlideShare a Scribd company logo
How to use Salesforce Cloud
Connector
13-12-2014
Abstract
• The main motto of this PPT is How to use
Salesforce CloudConnector in our applications.
Introduction
• The Anypoint™ Connector for Salesforce lets
you connect to the Salesforce platform. The
connector exposes convenient methods for
exploiting the capabilities of Salesforce,
including working with Apex classes.
Example
.mflow
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:sfdc="http://www.mulesoft.org/schema/mule/sfdc" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/sfdc http://www.mulesoft.org/schema/mule/sfdc/5.0/mule-sfdc.xsd">
<sfdc:config name="Salesforce" username="******" password="*****" securityToken="******"
url="https://******/services/Soap/u/26.0" doc:name="Salesforce">
<sfdc:connection-pooling-profile initialisationPolicy="INITIALISE_ONE"
exhaustedAction="WHEN_EXHAUSTED_GROW"/>
</sfdc:config>
<flow name="SalesforceCloudConnectorFlow1" doc:name="SalesforceCloudConnectorFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8094" doc:name="HTTP"
path="Salesforce"/>
<logger level="INFO" doc:name="Logger" message="--Entered into the flow"/>
<sfdc:query config-ref="Salesforce" doc:name="Salesforce" query="select Id, LastModifiedDate from Account
where Id='*****'"/>
<logger message="--Salesforce response is:#[payload]" level="INFO" doc:name="Logger"/>
</flow>
</mule>
• Output:
INFO 2015-12-13 11:29:22,807 [main] org.mule.DefaultMuleContext:
**********************************************************************
* Application: SalesforceCloudConnector *
* OS encoding: Cp1252, Mule encoding: UTF-8 *
* *
* Agents Running: *
* DevKit Extension Information *
* Clustering Agent *
* JMX Agent *
**********************************************************************
INFO 2015-12-13 11:29:22,808 [main] org.mule.module.launcher.MuleDeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'SalesforceCloudConnector' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2015-12-13 11:29:40,330 [[SalesforceCloudConnector].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --Entered into the flow
INFO 2015-12-13 11:29:52,203 [[SalesforceCloudConnector].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --Salesforce response is:[{LastModifiedDate=2015-09-
18T11:49:20.000Z, *****, type=Account}]
• Flow of execution:
1. URL to trigger the service from browser
http://localhost:8094/Salesforce
2. Salesforce component connects to the specific
account, gets the Id, LastModifiedDate for the
given id and prints the same in console.
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.7/salesforce-connector

More Related Content

PPTX
Bean as Datasource
PPTX
PPTX
Expression filter in Mule
PPTX
How to use jms outbound endpoint
PPTX
How to use IMAP endpoint
PPTX
Expression filter in Mule
PPTX
Filter expression in mule
PPTX
Basic example using for each component
Bean as Datasource
Expression filter in Mule
How to use jms outbound endpoint
How to use IMAP endpoint
Expression filter in Mule
Filter expression in mule
Basic example using for each component

What's hot (18)

PPTX
Build amazing apps with Aurelia - Webinar Slides
PPTX
How to use web service consumer
PPTX
For each component in mule
PPT
Mule exception strategies - Choice Exception Strategy
PPTX
Aurelia and .NET
PPTX
Quartz component in mule
PPT
Mule security
PDF
Aurelia intro
PPTX
Aurelia 101
PPTX
Mule message processor or routers
PPT
Mule with spring security manager
PPTX
Deploying and running mule standalone
PPT
Mule security
PPT
Mule security - saml
PPTX
Integration with Sercice-Now using Mule ESB
PPTX
Intermediate ASP.NET MVC
PPTX
Send email attachment using smtp in mule esb
PPTX
Getting started with Aurelia
Build amazing apps with Aurelia - Webinar Slides
How to use web service consumer
For each component in mule
Mule exception strategies - Choice Exception Strategy
Aurelia and .NET
Quartz component in mule
Mule security
Aurelia intro
Aurelia 101
Mule message processor or routers
Mule with spring security manager
Deploying and running mule standalone
Mule security
Mule security - saml
Integration with Sercice-Now using Mule ESB
Intermediate ASP.NET MVC
Send email attachment using smtp in mule esb
Getting started with Aurelia
Ad

Viewers also liked (7)

PPTX
CRM Science - Dreamforce '14: Using the Google SOAP API
PDF
Architecting Multi-Org Solutions
PDF
Customer Service in Salesforce: Managing Cases Effectively
PDF
Salesforce.com Org Migration Overview
PDF
How Salesforce CRM works & who should use it?
PPT
Salesforce Presentation
PPTX
Salesforce.com Overview
CRM Science - Dreamforce '14: Using the Google SOAP API
Architecting Multi-Org Solutions
Customer Service in Salesforce: Managing Cases Effectively
Salesforce.com Org Migration Overview
How Salesforce CRM works & who should use it?
Salesforce Presentation
Salesforce.com Overview
Ad

Similar to How to use salesforce cloud connector (20)

PPTX
How to use expression filter
PPTX
Expression Filters
PPTX
Mule Message Properties Component
PPTX
Message properties component
 
PPTX
Message properties component
PPTX
Message properties component in mule
PPTX
How to use message properties component
PPTX
Property place holder
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
Message properties component in mule
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
How to use message properties component
PPTX
Message properties component in Mule
PPTX
Filter expression
 
PPTX
Filter expression in mule
PPTX
Filter expression
PPTX
Filter expression
How to use expression filter
Expression Filters
Mule Message Properties Component
Message properties component
 
Message properties component
Message properties component in mule
How to use message properties component
Property place holder
How to use expression filter
How to use expression filter
How to use expression filter
Message properties component in mule
How to use message properties component
How to use message properties component
How to use message properties component
Message properties component in Mule
Filter expression
 
Filter expression in mule
Filter expression
Filter expression

More from RaviRajuRamaKrishna (13)

PPTX
Mock component in munit
PPTX
Jms selector
PPTX
PPTX
Object store
PPTX
How to use splitter component
PPTX
How to use rest component
PPTX
How to use soap component
PPTX
How to use wildcard filter
PPTX
How to use not filter
PPTX
How to use or filter
PPTX
How to use and filter
PPTX
How to use data mapper transformer
PPTX
How to use bean as datasource in database connector
Mock component in munit
Jms selector
Object store
How to use splitter component
How to use rest component
How to use soap component
How to use wildcard filter
How to use not filter
How to use or filter
How to use and filter
How to use data mapper transformer
How to use bean as datasource in database connector

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RMMM.pdf make it easy to upload and study
PPTX
Presentation on HIE in infants and its manifestations
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Final Presentation General Medicine 03-08-2024.pptx
RMMM.pdf make it easy to upload and study
Presentation on HIE in infants and its manifestations
Microbial disease of the cardiovascular and lymphatic systems
Module 4: Burden of Disease Tutorial Slides S2 2025
Abdominal Access Techniques with Prof. Dr. R K Mishra
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
A systematic review of self-coping strategies used by university students to ...
102 student loan defaulters named and shamed – Is someone you know on the list?
2.FourierTransform-ShortQuestionswithAnswers.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Complications of Minimal Access Surgery at WLH
VCE English Exam - Section C Student Revision Booklet
STATICS OF THE RIGID BODIES Hibbelers.pdf
GDM (1) (1).pptx small presentation for students
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Supply Chain Operations Speaking Notes -ICLT Program

How to use salesforce cloud connector

  • 1. How to use Salesforce Cloud Connector 13-12-2014
  • 2. Abstract • The main motto of this PPT is How to use Salesforce CloudConnector in our applications.
  • 3. Introduction • The Anypoint™ Connector for Salesforce lets you connect to the Salesforce platform. The connector exposes convenient methods for exploiting the capabilities of Salesforce, including working with Apex classes.
  • 5. .mflow <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:sfdc="http://www.mulesoft.org/schema/mule/sfdc" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/sfdc http://www.mulesoft.org/schema/mule/sfdc/5.0/mule-sfdc.xsd"> <sfdc:config name="Salesforce" username="******" password="*****" securityToken="******" url="https://******/services/Soap/u/26.0" doc:name="Salesforce"> <sfdc:connection-pooling-profile initialisationPolicy="INITIALISE_ONE" exhaustedAction="WHEN_EXHAUSTED_GROW"/> </sfdc:config> <flow name="SalesforceCloudConnectorFlow1" doc:name="SalesforceCloudConnectorFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8094" doc:name="HTTP" path="Salesforce"/> <logger level="INFO" doc:name="Logger" message="--Entered into the flow"/> <sfdc:query config-ref="Salesforce" doc:name="Salesforce" query="select Id, LastModifiedDate from Account where Id='*****'"/> <logger message="--Salesforce response is:#[payload]" level="INFO" doc:name="Logger"/> </flow> </mule>
  • 6. • Output: INFO 2015-12-13 11:29:22,807 [main] org.mule.DefaultMuleContext: ********************************************************************** * Application: SalesforceCloudConnector * * OS encoding: Cp1252, Mule encoding: UTF-8 * * * * Agents Running: * * DevKit Extension Information * * Clustering Agent * * JMX Agent * ********************************************************************** INFO 2015-12-13 11:29:22,808 [main] org.mule.module.launcher.MuleDeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app 'SalesforceCloudConnector' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2015-12-13 11:29:40,330 [[SalesforceCloudConnector].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --Entered into the flow INFO 2015-12-13 11:29:52,203 [[SalesforceCloudConnector].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --Salesforce response is:[{LastModifiedDate=2015-09- 18T11:49:20.000Z, *****, type=Account}]
  • 7. • Flow of execution: 1. URL to trigger the service from browser http://localhost:8094/Salesforce 2. Salesforce component connects to the specific account, gets the Id, LastModifiedDate for the given id and prints the same in console.