Salesforce Integration
Integrate Customers
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cxf="http://cxf.apache.org/core"
xmlns:pfx="http://www.pricefx.eu/schema/pfx" xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://www.pricefx.eu/schema/pfx http://www.pricefx.eu/schema/pfx.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
<pfx:dsIntegrate id="integrateSalesforceCustomer" objectType="C" businessKeys="customerId" mapper="integrateSalesforceCustomerMapper"/>
<pfx:integrateMapper id="integrateSalesforceCustomerMapper" includeUnmappedProperties="false"
convertEmptyStringToNull="true">
<pfx:body in="Id" out="customerId"/>
<pfx:body in="Name" out="name"/>
</pfx:integrateMapper>
<bean id="authentication" class="net.pricefx.integration.services.salesforce.auth.SalesforceAuthenticationOAuth">
<property name="username" value="michal.vich@pricefx.eu" />
<property name="password" value="******" />
<property name="clientId" value="3MVG98_Psg5cppyZ2_RommSclCLhvU.5EE6f42wifGPRj.AC7PjQp9OawDGKOTmiTMYLe88eVC4NAlVkC_WEF" />
<property name="clientSecret" value="2685002883200482928" />
<property name="url" value="https://pricefx-dev-ed.my.salesforce.com" />
</bean>
<camelContext xmlns="http://camel.apache.org/schema/spring" useMDCLogging="true">
<contextScan/>
<route id="fetchCustomers">
<from uri="timer://foo?repeatCount=1"/>
<!--<to uri="pfx-salesforce:versions?url={{integration.salesforce.url}}&authentication=#authentication&version=v40.0" />-->
<to uri="pfx-salesforce:get?url={{integration.salesforce.url}}&authentication=#authentication&version=v40.0&uri=/services/data/v29.0/sobjects/Account" />
<split streaming="true">
<jsonpath>$.recentItems</jsonpath>
<log message="${body}" />
<to uri="bean://integrateSalesforceCustomer"/>
</split>
</route>
</camelContext>
</beans>
IntegrationManager version 5.8.0