Forum Discussion
brianrandolph
8 years agoNew Contributor III
you shouldn’t need parenthesis around the name. “_field1” should work.
jhagist
8 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