# Value Setter: how to reference nested object using current id

**URL:** <https://forum.alumio.com/t/value-setter-how-to-reference-nested-object-using-current-id/2087>\
**Category:** General\
**Created:** [June 18, 2025, 11:07am UTC](https://forum.alumio.com/t/value-setter-how-to-reference-nested-object-using-current-id/2087 "2025-06-18T11:07:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vosy](https://forum.alumio.com/letter_avatar_proxy/v4/letter/v/ecd19e/32.png) [@vosy](https://forum.alumio.com/u/vosy)\
**Post date:** [June 18, 2025, 11:07am UTC](https://forum.alumio.com/t/value-setter-how-to-reference-nested-object-using-current-id/2087/1 "2025-06-18T11:07:19Z")

</div>

```auto
{
    "items":[
        {
            "id":"aaa",
            "translations":{
                "aaa":{
                    "new_id": "some text aaa"
                },
                "bbb":{
                    "new_id": "some text bbb"
                },
                "ccc":{
                    "new_id": "some text ccc"
                }
            }
        },
        {
            "id":"bbb",
            "translations":{
                "aaa":{
                    "new_id": "some text aaa"
                },
                "bbb":{
                    "new_id": "some text bbb"
                },
                "ccc":{
                    "new_id": "some text ccc"
                }
            }
        },
        {
            "id":"ccc",
            "translations":{
                "aaa":{
                    "new_id": "some text aaa"
                },
                "bbb":{
                    "new_id": "some text bbb"
                },
                "ccc":{
                    "new_id": "some text ccc"
                }
            }
        }
    ]
}

```

how to use Value setter to create “new\_id” with value somethink like translations[id].new\_id

result like

```auto
{
    "items":[
        {
            "id":"aaa",
            "new_id":"some text aaa",
            "translations":{
                "aaa":{
                    "new_id": "some text aaa"
                },
                "bbb":{
                    "new_id": "some text bbb"
                },
                "ccc":{
                    "new_id": "some text ccc"
                }
            }
        },
    ....
    ]
}

```

---

<div class="post-metadata">

**Author:** ![m.arief](https://forum.alumio.com/user_avatar/forum.alumio.com/m.arief/32/1568_2.png) [@m.arief](https://forum.alumio.com/u/m.arief)\
**Post date:** [June 18, 2025, 12:00pm UTC](https://forum.alumio.com/t/value-setter-how-to-reference-nested-object-using-current-id/2087/2 "2025-06-18T12:00:08Z")

</div>

Hi @vosy ,

Indeed that would be easier to do with something like `translations[id].new_id` or `translations[&{id}].new_id`  
But unfortunately, it is not possible to use a variable expander inside another variable expander.  
As for your case, you can achieve by doing these **“Node transform nodes”** transformer.

1. Create a Node transformer  

2. Create a value Setter (to create a same structure so it can be compared with the “translations” data)  

3. Value setter to compare the keys  

4. Put the intersected value as a result  

As the result you’ll get this :

 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/2X/c/caa24f6e882ae9e7e3d613087f731d73014baeb4.png)

Let me know if this is not the result that you’re expecting.
