Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello all, for the project I'm working on, we're using D7, CiviCRM 4.7 and the drupal elections module.
The elections module provides a set of rules triggers, most importantly for us, 'user has voted'.
It'd be helpful for us to have a means to automatically add that user into a CiviCRM group ['voters'].
Would this be possible to accomplish by CiviCRM Entity?
Comments
Comment #2
markusa CreditAttribution: markusa commentedOk I've added two new Rules actions to the module. Available now in the -dev version downloadable from D.
Assign CiviCRM Contact to Group
Unassign CiviCRM Contact from Group
these are in the Rules action grouping CiviCRM Contact
First you need to have the action
Create or Load Linked CiviCRM Contact
This action already existed in the module...
Then you add the new Assign CiviCRM Contact to Group action
give it the contact in the CiviCRM Contact parameter fieldset
and select one or more Groups to assign to the contact in the CiviCRM Group parameter fieldset...
Comment #3
btc97 CreditAttribution: btc97 commentedIn setting this up on a multilingual site I get an AJAX HTTP error: column not found. There is no civicrm_group.title in my CiviCRM DB (only columns related to the enabled languages title_en_US etc.). See screenshot for the exact error message.
CiviCRM 4.7.19, CiviRules 1.12 Drupal 7.54
Comment #4
markusa CreditAttribution: markusa commentedyep, civicrm entity never augmented to handle CiviCRM multi-lingual yet...
that should be a separate issue.
Comment #5
markusa CreditAttribution: markusa commented