Workflows: is there a way to store a local variable that the workflow can access the next time it runs

Hi,

Is there a way to store a local variable that the workflow can access the next time it runs?

The use case is that I make a request to an API with the url parameter updated_at to receive records that were created/update after the given date. Each workflow would have to store an updated_at variable for the next the workflow runs.

Thanks.

Hi @lharney,

In v1 workflows you can use $checkpoint to store & retrieve data from prior runs.

In v2 workflows, workflow steps have become components, so the same $.service.db property is available to inject into workflow steps for retrieving and storing arbitrary data.

1 Like

Thanks Pierce!

1 Like

@lharney you got it, happy to help :slightly_smiling_face: