4

Was trying to set up a rule to create drupal user records linked to CiviCRM records that do not have them, The rule is this:

EVENT CiviCRM Contact has been created
Contact has been updated

Conditions NOT Drupal User Account can be created for user (this condition creates the user) Parameter: CiviCRM Contact: [civicrm-contact:civi-user..., Activate Account: true, Send account notification email: true, Instant signin: false

Actions Create or Load Linked Drupal User Account Parameter: CiviCRM Contact: [civicrm_contact], Activate Account: true, Send account notification email: true Provides variables: Created or Loaded Drupal User (civicrm_user)

Show a message on the site Parameter: Message: Drupal User Linked or...

Unfortunately we don't seem to be able to trigger the rule by updating a contact, we just seem to get this error in the watchdog:

MESSAGE Unable to get variable civicrm_contact, it is not defined.

Does anyone know how to get this working? Thanks!

1

There was a blog here about creating Drupal users by adding a civicrm tag (as one option for achieving this) and triggering a Drupal Rule from that which you may find it useful.

3

There's a working recipe on this CiviCRM wiki page. There's also an excellent discussion on the old forums here. In particular, I'd make sure you have all the modules named on that second link installed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.