Forum Discussion

swright's avatar
swright
New Contributor III
4 years ago
Solved

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...
  • j_angelevski's avatar
    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