Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<flow name="syncWithWatermark" processingStrategy="synchronous">
<poll doc:name="Poll">
<fixed-frequency-scheduler frequency="1" timeUnit="HOURS" />
<watermark variable="timestamp"
default-expression="#[server.dateTime.format(&quot;yyyy-MM-dd'T'HH:mm:ss.SSS'Z'&quot;)]"
selector="MAX" selector-expression="#[payload.LastModifiedDate]" />
<sfdc:query config-ref="Salesforce"
query="select Id, LastModifiedDate from Contact where LastModifiedDate &amp;gt; #[flowVars['timestamp']]" />
</poll>
<flow-ref name="doYourSyncMagic" doc:name="do sync" />
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.