You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.
I'm having trouble getting results when using the "IN" operator in where clauses to search for multiple options (ex: search for all contacts that have selected both Volunteering and Newsletter among their contact preferences).
Which yields no results. Notably, when I switch 'IN' to 'NOT IN', it returns all contacts with non-empty Contact_Interests, so it seems like this is an API issue.
Which version of api4 are you using? This extension or the one in core?
Is this a multiselect custom field or does it hold a single value?
And are "Newsletter" and "Volunteering" the option names or ids or labels or what?
CiviCRM 5.18.3 with API extension 4.5.2. I am trying to search on a multiselect custom field (Set name is Interests, and the options Newsletter and Volunteering are both the label and the value).
I'm having trouble getting results when using the "IN" operator in where clauses to search for multiple options (ex: search for all contacts that have selected both Volunteering and Newsletter among their contact preferences).
Using the API4 Explorer, this is php output
Which yields no results. Notably, when I switch 'IN' to 'NOT IN', it returns all contacts with non-empty Contact_Interests, so it seems like this is an API issue.
Using the API3 Explorer:
This call does return the correct results.
The text was updated successfully, but these errors were encountered: