How to get a value in a Collection depending on a nested value into this same Collection

Hello @Garry_V,
There are 2 ways to get it.

Using get() and map() functions

{{get(map(map(map(1.data; "widget_data"); "email"); "data"; "data"; "email1@email.com")1)}}

Make sure you change the required input accordingly.

Data I’ve inputted on

{
   "data":[
      {
         "id":1,
         "widget_data":{
            "email":{
               "data": "email1@email.com"
            }
         }
      },
      {
         "id":2,
         "widget_data":{
            "email":{
               "data": "email2@email.com"
            }
         }
      }
   ]
}

On the second approach, you need to use an Iterator. which still needs to use map and get under the lteration.
I think this is enough for you is structure and keys are always same.


:bulb:P.S.: Always search first, Check Make Academy. If this is helpful, mark it as a solution :white_check_mark: and :+1:
Need expert help or have questions? Contact or comment below! :point_down: