crm_associations & search object by property value

Consider:

crm_associations(123, "HUBSPOT_DEFINED", 2, "limit=5&name__eq=John Smith")

It will match objects that have property name “John Smith”, but also “John Smith Junior”. Surely this is a bug?

And to make it worse - it would also match object with “Smith John”?!?

How is “John Smith” equal to “John Smith Junior” and “Smith John”?!

Hi,

since you are using the association type id 2, you are searching for associated contacts. Does your contact model have a name attribute at all? Since this is no standard attribute I would recommend to check this first. Please note, that invalid attributes within the query string do not lead to an error but will be ignored at all (resulting in returning all associated objects).

Cheers,

Andreas