swright
4 years agoNew Contributor III
Jsonpath - how to use parameters or variables inside a jsonpath
Using jsonpath as the expression in a mapper snap the following works:
jsonPath($, “$entity.items[?(@.AssignmentNumber==‘E3163300-2’)].links[*]”).find(x=>x.name == ‘assignedPayrolls’).href
I want...
- 4 years ago
Hi @swright,
You need to concatenate the jsonPath with the pipeline parameter.
jsonPath($, "$entity.items[?(value.AssignmentNumber=='" + _AssignmentNumber + "')].links[*]").find(x=>x.name == "assignedPayrolls").href