Last active
December 20, 2015 00:19
-
-
Save marianogonzalez/6040442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sfdc:config-with-oauth name="Salesforce" consumerKey="${consumerKey}"consumerSecret="${consumerSecret}"> | |
<sfdc:oauth-callback-config domain="localhost" localPort="8081" remotePort="8081" path="oauthcallback"/> | |
<sfdc:oauth-store-config objectStore-ref="_defaultInMemoryObjectStore"/> | |
</sfdc:config-with-oauth> | |
<objectstore:config name="ObjectStore" objectStore-ref="_defaultInMemoryObjectStore"/> | |
<flow name="sad-load-contact"> | |
<ftp:inbound-endpoint host="${ftp.host}" port="21" path="${ftp.path}" | |
user="${ftp.user}" password="${ftp.pass}" responseTimeout="10000"/> | |
<enricher target="#[flowVars['accessTokenId']]"> | |
<objectstore:retrieve config-ref="ObjectStore" key="#[inboundProperties['tenantId']]" defaultValue-ref="#['']" /> | |
</enricher> | |
<expression-filter expression="#[flowVars['accessTokenId'] != '']" doc:name="Is Access Token Set"/> | |
<data-mapper:transform config-ref="csv_to_contact"/> | |
<sfdc:create-single config-ref="Salesforce" type="Contact" accessTokenId="#[flowVars['accessTokenId']]"> | |
<sfdc:object ref="#[payload]"/> | |
</sfdc:create-single> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment