PricingBlog

Getting a filtered object value from an array

  • datomnz-1181775281493659729

    Tom Wrench

    2 years ago

    I feel I'm missing something really simple here, but I'm trying to get the value of topic_param from this filtered array.

    I've tried putting into path on the Get action 0.topic_param as well as variations of that, but it's not returning what I need.

    Can anyone please give this ol' man a helping hand? 😅🙏
    1181775281690779648-image.png
  • lucasg-1181816476978643005

    Lucas G

    2 years ago

    ["0","topic_param"]
  • You should be able to paste that in for your Get path
  • You can either use an array for the Get param or use two Get nodes
    1181816911546286110-image.png
  • 1181817161472286740-image.png
    🔥3
  • tomthebigtree-1181832095312646296

    Tom Ireland

    2 years ago

    💯 on what @Lucas G said. You can use an array with Get to access nested data structures. Only found this out the other week (think it was Andreas’ video on data structures) - very cool!
  • datomnz-1182032935386349598

    Tom Wrench

    2 years ago

    Superstar. Thanks @Lucas G . Works a treat!