- Issue created by @collinhaines
- πΊπΈUnited States markusa
Thanks for reporting. The error is a symptom and not a one-line bug.
This is challenging.
https://github.com/eileenmcnaughton/civicrm_entity/blob/4.0.x/src/Entity...That plugin works for simple things, but when conditions are condition groups, it does not.
I'm not aware of being able to do condition groups in CiviCRM APIv3
This maybe possible in a future update when we upgrade CiviCRM Entity to use APIv4, we haven't used APIv4 in this module yet. It maybe possible to attempt in only this plugin, and not modifying the API service, quicker
I'm calling this a feature request due to the complexity and effort of the solution.
If you need a solution for your site in the near term, I'd suggest not using the EntityQuery at all, but APIv4 Directly
https://docs.civicrm.org/dev/en/latest/api/v4/usage/\Drupal::service('civicrm')->initialize(); // APIv4 code here