# Multi-field field map with child lookup

**URL:** <https://connective.celigo.com/t/multi-field-field-map-with-child-lookup/386>\
**Category:** Integrator.io\
**Tags:** handlebars, lookup\
**Created:** [August 9, 2023, 11:09pm UTC](https://connective.celigo.com/t/multi-field-field-map-with-child-lookup/386 "2023-08-09T23:09:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![coreyhunt](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@coreyhunt](https://connective.celigo.com/u/coreyhunt)\
**Post date:** [August 9, 2023, 11:09pm UTC](https://connective.celigo.com/t/multi-field-field-map-with-child-lookup/386/1 "2023-08-09T23:09:20Z")

</div>

I have a results mapping where I need to combine values that have multiple locations 1 in the parent object and multiple in the child objects. For simplicity sake the object looks like this:  
{  
 "id": "294726",   
 "tags": "black, orange",  
 "child\_items": [  
 {  
 "id": "295544",   
 "tags": "red, blue"  
 },  
 {  
 "id": "295545",   
 "tags": "yellow, green"  
 },  
 {  
 "id": "295546",   
 "tags": "tall, pink"  
 }  
 ]  
}

I tried {{tags}}{{child\_items[\*].tags}} but that is throwing an error. How can I get the resultant field called tags to have "black, orange, red, blue, yellow, green, tall, pink"?

---

<div class="post-metadata">

**Author:** ![dhilips](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dhilips](https://connective.celigo.com/u/dhilips)\
**Post date:** [August 10, 2023, 4:27am UTC](https://connective.celigo.com/t/multi-field-field-map-with-child-lookup/386/2 "2023-08-10T04:27:36Z")

</div>

Hi @coreyhunt

We can achieve this use case using a script in postresponsehook. Add a script that traverses to all objects and you can push those values into an array or to another JSON object.

Thanks!

---

<div class="post-metadata">

**Author:** ![coreyhunt](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@coreyhunt](https://connective.celigo.com/u/coreyhunt)\
**Post date:** [August 10, 2023, 4:00pm UTC](https://connective.celigo.com/t/multi-field-field-map-with-child-lookup/386/3 "2023-08-10T16:00:59Z")

</div>

I was afraid that was the case. Thanks, I'll give that a try.
