Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't query groups using api4 #239

Open
kenahoo opened this issue Feb 16, 2025 · 0 comments
Open

Can't query groups using api4 #239

kenahoo opened this issue Feb 16, 2025 · 0 comments

Comments

@kenahoo
Copy link

kenahoo commented Feb 16, 2025

I opened the following Stack Exchange question: https://civicrm.stackexchange.com/questions/49150/trouble-with-cv-api-version-3-and-4/49151 and it looks like this is probably an issue with cv's implementation itself.

The following error happens when trying to get (for example) the email address for every user in a given group:

$ cv api4 Contact.get +s email_primary +w 'groups:name = "Current Singers"'

In Api4Query.php line 348:
                               
  Illegal operator for groups  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant