reuben
2 years agoNew Contributor
jsonpath in expression library
I would like to use a jsonpath in an expression library, but I am unsure of the syntax with parameters.
custfield is a json array of custom field data and fieldname is a string
This is what I attempted:
{
customField: (custfield,fieldname) => jsonPath($, "custfield[*]").find(f=>f.FieldName==fieldname)
}
What should the syntax be?