Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<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