Forum Discussion

manohar's avatar
manohar
Contributor
3 years ago
Solved

Route based on grand child value

Hi there, I have this structure json. I need to route the json based on attachment in below json, if exist or not input json [ { "data": { "po-number": "4501918519_2", "order-l...
  • Aleksandar_A's avatar
    Aleksandar_A
    3 years ago

    So you want every order line to be as a separate object, or you want two objects:

    • Object A: with order lines that contain ***attachment***

    • Object B: with order lines that doesn’t

    SL-comm-route-based-on-grand-child_2023_03_02.slp (7.6 KB)
    This pipeline creates as many objects, as there are in the order-lines array under data.