Forum Discussion

manohar's avatar
manohar
Contributor
5 years ago
Solved

Checking for Exist in Router

Hi there, I have this pipeline, that I am using to check for a path in Router snap and for somereason, cant make it work. any pointer on what I am missing? Basically I am looking for “E1EDPT2” in...
  • del's avatar
    del
    5 years ago

    Yes, I presume so.

    So you might change #3 to

    jsonPath($,"$.IDOC.E1EDP01[?(@.hasPath('E1EDPT1') && @.E1EDPT1.hasPath('E1EDPT2'))]").length > 0