Forum Discussion
Depending on your use case you can try the expression libraries too.
I’ve created a couple of “helper” libraries that calculate things like File Paths which vary depending on the project or user or pipeline that’s calling them and then store the function in an expression library which gets loaded at run time in the pipeline. These can then act like global variables.
eg I can then use “lib.helpers.file_path” in any snap and it’s always going to be correct and I never have to traverse the $original.original.original tree (something which gets very messy when you add another snap into the flow)
I’ve been looking for that…How do you create expression libraries? I don’t recall seeing that anywhere. That would be really helpful for file paths that vary based on the snaplex being used.
- cjhoward186 years agoEmployee
@wpenfold
Here is the documentation for creating Expression Libraries: