How to find a string in a nested object

Hi,

I have an array of objects. I need to find the id by the it’s name with in an object in an array. Previously, I was able to use get(map()) for that. Now, there is an added level to the object.

This is simplified but I attached the full output:

"data": {
                        "edges": [
                            {
                                "node": {
                                    "id": "ASDFRW==",                                    
                                    "name": "Location Alpha"
                                }
                            },
                            {
                                "node": {
                                    "id": "FRGTEE==",                                    
                                    "name": "Location Beta"
                                }
                            }
                        ]
                    }

Not sure how to best approach this, as get(map()) only looks at the first level of the array you specify. What would be the best approach?

make_output_locations.txt (868 Bytes)

You need to use the map function alone, together with a dot notation.

Something like this:

map( {{array}} ; {{node.name}} ; {{node.id}} ; ASDFRW== )

This map() returns : Location A

Thank you! For some reason in my mind, I thought you couldn’t do it.