Forum Discussion
Thanks for this. I am currently using the pipeline parameter to pass this information.
My question is really how to write the syntax.
I have put the function (that I need to variablize) into the Pipeline parameter _field1 but I can’t get it to run
you shouldn’t need parenthesis around the name. “_field1” should work.
- jhagist8 years agoNew Contributor III
When I try it without the parenthesis around the name. “_field1” All I get is the parameter as a string.
Snap,
Any ideas??
- brianrandolph8 years agoNew Contributor III
Have you tried putting it in an expression library and then reference it there?
For example, I have an expression library file invItems.expr:
{
INVOICE_TARGET_DATE: _invoice_date || Date.now().toLocaleDateString(‘{"timeZone":"EST", “format”:“yyyy-MM-01”}’)
}and then i reference that in the pipeline:
lib.invItems.INVOICE_TARGET_DATE