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?

CommentFileSizeAuthor
#3 err.png20.75 KBbtc97
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grahamsmith created an issue. See original summary.

markusa’s picture

Version: 7.x-2.0-beta6 » 7.x-2.x-dev
Status: Active » Needs review

Ok 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...

btc97’s picture

FileSize
20.75 KB

In 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

markusa’s picture

yep, civicrm entity never augmented to handle CiviCRM multi-lingual yet...
that should be a separate issue.

markusa’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.