Skip to content

Instantly share code, notes, and snippets.

@marianogonzalez
Last active December 20, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marianogonzalez/6040442 to your computer and use it in GitHub Desktop.
Save marianogonzalez/6040442 to your computer and use it in GitHub Desktop.
<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