Get Map specific array item value

hello! i am trying to always get the value of the custom field id shown in the image and map to a variable. when new custom fields are created in my crm it changes the array number i was using simply {{33.custom_fields[2].value}} to map it then discovered the error after we created some more IDs.

Im pretty new to make.com and havent quite got my head around get and map. I’ve tried this but its failing:

{{get(map(33.custom_fields; custom_field_definition_id; value); 666661)}}

could somebody please help me? Thanks a bunch

Custom Fields: (Array)
• 1 (Collection)
Custom Field Definition ID: 665569
Value: Clarke
© 2 (Collection)
Custom Field Definition ID: 666284
Value: 17.10.2024 11.30
© 3 (Collection)
Custom Field Definition ID: 666661
Value: empty ((I NEED TO ALWAYS MAP THIS TO THE VAR)
© 4 (Collection)
Custom Field Definition ID: 667206
Value: Retail
© 5 (Collection)
Custom Field Definition ID: 663937
Value: empty

So I figured it out and hopefully this is helpful to others.

Map is mapping the custom_fields array; value field; using the custom_field_definition_id key that has a value of 666661

Get is using the 1st array item in the map output (this is the 1 at the end) in this case there will only be 1 thing in there as ive mapped it that way using map

Actual command:

{{get(map(26.custom_fields; “value”; “custom_field_definition_id”; 666661); 1)}}

1 Like