Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes

How can I use Drupal Rules to remove a contact from a group

Graham made a feature request and we got this feature in the CiviCRM Entity module, for doing this with Drupal Rules Just added a rules action "Unassign contact from group" to the dev release of ...
jackrabbithanna's user avatar
3 votes
Accepted

Can CiviCRM entities be used as events to trigger Drupal Rules?

The rule will only trigger when the Drupal version of the contribution page at path /civicrm-contribution-page/(id) We haven't added a feature to trigger the rule event when the civi version of the ...
jackrabbithanna's user avatar
3 votes

Link Drupal Node Content to a CiviCRM user and add user to a group?

You can use rules module where you set condition upon node submit to perform to add user to CiviCRM group. Module: Rules/ CiviRules
Pradeep Nayak's user avatar
2 votes

Creating Drupal Accounts when a sub-type CiviCRM Contact is created - created by a webform

Ok so the installation and use of the Webform Rules went a long way to contributing to resolve the issue in terms of restricting the triggering of the action of creating a user and also providing the ...
Mo-ster's user avatar
  • 283
2 votes

Creating Drupal Accounts when a sub-type CiviCRM Contact is created - created by a webform

Most of what you need is here: How can I create a Drupal user when someone submits a CiviCRM-Webform? based on @petednz-fuzion's blog post. It uses civicrm_entity which has seen a lot of activity ...
Aidan's user avatar
  • 13.5k
2 votes

Can CiviCRM entities be used as events to trigger Drupal Rules?

The way I'm doing it is to use Path Rules module to check the CiviCRM URL for the transact page. So we look for the path say /civicrm/contribute/transact?reset=1&id=1 That triggers the rule. We ...
Tony Horrocks's user avatar
2 votes

how to trigger a Drupal rule on CiviMember Roles Sync?

In case anyone needs this we ended up doing this with a simple drupal rule - Event = Content is viewed Conditions = AND user has role authenticated user, NOT user has role current member Action = ...
nigelwhite's user avatar
2 votes
Accepted

Drupal OG creation on Membership

Unfortunately Drupal rules module is not triggered on CiviCRM membership CRUD function and CiviRules does but doesn't provide option to perform any CMS changes like creating OG groups in your case. I ...
Pradeep Nayak's user avatar
2 votes

Drupal Rules - Condition "Civicrm Contact has email" appears to not be working

https://github.com/eileenmcnaughton/civicrm_entity/blob/7.x-2.x/civicrm_entity.module#L3237 remove the ampersand from the $contact parameter function ...
jackrabbithanna's user avatar
2 votes
Accepted

Setting up rule to link CiviCRM contact (created when webform is submitted) with Drupal 7 account

You may need to add your rule here. The one by Christia is specifically about "updating a contact record in the CiviCRM" not about creating. The only way we have made rules work for creation from ...
petednz - fuzion's user avatar
  • 28.3k
2 votes

A bit of automation?

1/ You can do this in a Drupal Webform so that the original coach has their relationship expired 2/ we did some work for another age-based organisation to ensure that only the valid membership type ...
petednz - fuzion's user avatar
  • 28.3k
2 votes
Accepted

The replacement token civicrm-user:one-time-login-url not working in Drupal Rules emails

The good news is that it is possible to send an email with a one-time login URL using rules. There is an issue on the rules module for exactly this ability: problem with mail and one-time-login-url. ...
Ben's user avatar
  • 946
1 vote
Accepted

Undefined property: CRM_Contact_DAO_Contact::$contact_id in civicrm_entity_contact_user_get()

With further testing I have established that was caused by a clash with another rule with the same event and weight. Changing the weight on the other rule has removed the error notice. The other rule ...
somnolentsurfer's user avatar
1 vote

Undefined property: CRM_Contact_DAO_Contact::$contact_id in civicrm_entity_contact_user_get()

The message is a 'Notice' which can sometimes be ignored. However, looking at the code causing the message the purpose of the function is to load a user entity based on the contact id but the contact ...
Aidan's user avatar
  • 13.5k
1 vote

A bit of automation?

Without writing code (an extension or CiviRules conditions), I think your only bet is to use smart groups for Junior/Senior players. I don't think there's any way to remove the head coach ...
Jon G - Megaphone Tech's user avatar
1 vote

Link Drupal Node Content to a CiviCRM user and add user to a group?

On a node update (You can change it to node create) it captures the email address from the node i.e. directory and creates a new Drupal user and CiviCRM contact and assigns that contact to the group. ...
Sohal Khatwani's user avatar
1 vote

Rule to create a Linked Drupal user account for a specific CiviCRM Contact Subtype

I'm assuming you are also using the CiviCRM Entity module? For it to work on membership create, you need to load the contact entity from the membership->contact_id property. Use the "Fetch entity ...
jackrabbithanna's user avatar
1 vote
Accepted

Drupal Rules: Send email then Contact Custom Field Value was updated

It turned out Jaap Jansma - CiviCooP was right, CiviRules ( and Email Api for sending emails - a missing piece from my previous attempts ) can do the job nicely. CiviRules can handle any Contact ...
yurg's user avatar
  • 2,050
1 vote
Accepted

'Create Linked Drupal User Account' problem - bug or user error?

This could be caused that in CiviCRM an e-mail address is its own entity and created after the contact has been created. Meaning that at the point the trigger contact created is fired there is no e-...
Jaap Jansma - CiviCooP's user avatar
1 vote

CiviCRM Entity Tags does not appear in Rules

Try this: { "rules_self_create_user_account_and_login" : { "LABEL" : "Create User Account", "PLUGIN" : "reaction rule", "OWNER" : "rules", "REQUIRES" : [ "civicrm", "rules" ], "ON" : { "...
petednz - fuzion's user avatar
  • 28.3k
1 vote

Award Drupal User points after contribution

To make this work I’m pretty sure you’ll need CiviCRM Entity module. We’ve used that to create Drupal accounts after/when a Contact purchases a Membership.
KarinG - Semper IT's user avatar
1 vote

Drupal Rules are not working properly when check CiviCRM Contact's Subtype

I remember this issue from some time in the past, probably been on stackexchange here before. In the end, we developed a new Rules condition, provided by the CiviCRM Entity module, "CiviCRM Contact is ...
jackrabbithanna's user avatar
1 vote

Setting up rule to link CiviCRM contact (created when webform is submitted) with Drupal 7 account

Here's an example Rule for Creating a user after a Webform CiviCRM submission; For the Event we're creating a helper Membership (we're really just Registering people to ride their bikes in an Event) - ...
KarinG - Semper IT's user avatar
1 vote

how to trigger a Drupal rule on CiviMember Roles Sync?

Rather than using a Rule, you could achieve this just by using Views to create a block that shows Membership status, and if you want, limit it to only show for Roles that are expired, etc. I ...
petednz - fuzion's user avatar
  • 28.3k
1 vote

Can Drupal be used to send an email if an existing contact's name is changed

The extension CiviRules is maybe an option. You can find it in the extension directory https://civicrm.org/extensions/civirules and the latest documentation is at https://docs.civicrm.org/civirules/en/...
Kainuk - CiviCooP's user avatar
1 vote
Accepted

How to create a Drupal rules condition that checks CiviCRM contact's Group or Tag or Subtype

Well to answer this question, basically I had to write a couple of new Rules conditions. They have been added to the CiviCRM Entity project, right now they are in the -dev version. I added two new ...
jackrabbithanna's user avatar
1 vote

Problem creating Drupal users using Rules and Webform integration

I've been using the CMS user extension https://civicrm.org/extensions/cms-users (with Drupal 9 / CiviRules) successfully.
kathc's user avatar
  • 125
1 vote
Accepted

500 error when creating action in rule ''Create linked drupal user account''

We got this working using this rule: { "rules_friends_tag_account_create" : { "LABEL" : "Self Create User Account and login", "PLUGIN" : "reaction rule", "OWNER" : "rules", "TAGS" : [ "CiviCRM", "...
Nicola's user avatar
  • 163

Only top scored, non community-wiki answers of a minimum length are eligible