Skip to content

Instantly share code, notes, and snippets.

@zregvart
Created February 10, 2017 14:51
Show Gist options
  • Save zregvart/14f95a8fbccdc0954b207c88b4ef7c5f to your computer and use it in GitHub Desktop.
Save zregvart/14f95a8fbccdc0954b207c88b4ef7c5f to your computer and use it in GitHub Desktop.
<camel:camelContext>
<camel:route>
<camel:from uri="direct:start" />
<camel:to
uri="salesforce:query?sObjectClass=com.github.zregvart.salesforce.query.Contacts&amp;sObjectQuery=SELECT name FROM Contact"></camel:to>
<camel:log message="->${body}" />
<camel:loop doWhile="true">
<camel:simple>${body.done} == false</camel:simple>
<camel:setHeader headerName="sObjectQuery">
<camel:simple>${body.nextRecordsUrl}</camel:simple>
</camel:setHeader>
<camel:to
uri="salesforce:queryMore?sObjectClass=com.github.zregvart.salesforce.query.Contacts&amp;sObjectQuery=SELECT name FROM Contact"></camel:to>
<camel:log message="+>${body}" />
</camel:loop>
</camel:route>
</camel:camelContext>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment