What is your goal?
I want to filter Make bundles based on the presence of a specific value inside an array of objects, and then retrieve only one field (the email) from the matching bundles.
More specifically, I need to keep only the bundles that contain at least one object in an array with a specific id value, and discard all others.
What is the problem & what have you tried?
Each bundle contains an array of objects (for example Tags), and each object has an id and a name.
The issue is that:
Each bundle can contain 0, 1, or multiple objects in the array
I need to check whether at least one object in the array has a specific id value
Standard Make filters don’t seem to work as expected when filtering based on a condition inside an array of objects
I’ve tried:
Using standard bundle filters
Using contains() and map() on the array
Comparing mapped values to a static ID
But I can’t reliably filter bundles only when the array contains an object with the target id.
Error messages or input/output bundles
Here is a simplified example of the bundle structure returned by the module:
{
“Email”: “example@email.com”,
“Tags”: [
{
“id”: 1716937,
“name”: “client_novembre”
},
{
“id”: 123456,
“name”: “other_tag”
}
]
}
I want to keep the bundle only if one of the objects in Tags has id = 1716937, then extract the Email field.




