Audiences with Array of Objects
Hi,
I’m working with a schema that contains an array of objects — for example:
accounts: [{ account_number, account_type, account_status }]
I’d like to create an audience that qualifies a user only if there is at least one object in the accounts array where:
account_type = "savings"
account_status = "active"
The key requirement is that both conditions must be true within the same object, not across multiple objects in the array.
Example scenario:
Given this user data:
accounts: [
{ account_number: "123", account_type: "savings", account_status: "inactive" },
{ account_number: "456", account_type: "checking", account_status: "active" }
]
The user should not qualify, as the savings account_type is in one object and account_status = active is in another object.
Any guidance on how to set this up in the audience builder would be appreciated!
Thanks!