Getting Kommo custom fields nested values

Hey comunity! i am new to Make.com and i’ve been investigating (and struggling) a lot about data structures and how to acces certain values and mapping them into other modules.

as you can see, the value that i want to extract is inside a collection (1) that is inside an array (Values) inside a collection (4) inside the main array. Also, the collections inside the main array may vary depending on which custom fields are filled in the contact’s file.

i am trying to get that values with a set multiple variables module

i think that the best way to get the values i want is by filtering “Field ID” so when it is like in this exaple “982712” it returns the nested value. Then i can create multiple variables for al the custom fields i want to return and map in the next module.

i’ve already tried with map(, get(, get(map(, and a lot of alternatives but i cannot find the solution, the value returns “empty”

also, i would like a formula that does not crash when the “field id” is not found, because there are times when that specific custom field is not filled and the whole collection corresponding to that field id is not indexed.

thank you very much in advance!

output bundle.txt (5.3 KB)

hi @Taura_Medicina_Fungi
Seems that with {{get(map( etc you are in the right path. Pls share you settings for that.
{{get(map(9.metaData; etc…
Best regards

finally i’ve got it working with this formula

the map function calls the values.1 collection and the first function bring the value (that always comes in the first place)

i am not sure why it does not work the other way (with get(map( or only map and “values.1.value”.

i still got to test it a bit more.

I’ve worked with Kommo’s API through Make, and nested custom fields can be tricky. You usually need to dig into the custom_fields_values array and then map by field_code or field_id. For select or multi-select fields, the actual values are nested deeper—often under values > enum_id or value. Using a get() function inside map() helped extract everything cleanly.