This topic was automatically generated from Slack. You can find the original thread here.
Zilvinas Bartkus : Guys, maybe a noob question, but I am strugling to find/set GLOBAL variables to append values throughout the workflow in different steps.
This topic was automatically generated from Slack. You can find the original thread here.
Zilvinas Bartkus : Guys, maybe a noob question, but I am strugling to find/set GLOBAL variables to append values throughout the workflow in different steps.
Zilvinas Bartkus : Shoudl I go for $checkpoint variable?
Dylan Sather (Pipedream) : yes, you can get / set data that spans steps using $checkpoint
.
If you just need to read data globally (and not modify the variable), I often like to have a CONFIG
step at the top of my workflow that sets values I use in the rest of my steps. See this example. steps.CONFIG.hello
, for example, is readable globally. You can use environment variables in the same way.
Since all steps are Node.js code, you can also copy and paste the code from one step into another to combine them, so you can work with local variables within the step. I often find that easiest when Iām working with a complex workflow.
Let me know if that helps.