1

We are running CiviCRM 4.7.12 on Wordpress. We have a number of donors who have an active membership. They contribute monthly towards the membership. We have CiviPoints and CiviRules installed. We want to use CiviRules for the following:

  1. Grant 1 point to a contact for each month that the contact remains an active member (the membership status must be either new or current).
  2. Deduct 2 points for each month that the contact remains inactive (due to cancellation or lapse in payment)

How can we setup CiviRules to perform 1 and 2 above?

1

Out of the box that is not possible with CiviRules. You need to write your own trigger which fires every month.

The good news is that the SQLTasks extension might do this: https://civicrm.org/extensions/sql-tasks-extension-configurable-recurring-tasks

  • 1
    Agree with @Jaap though I would like to add that CiviRules is an engine. And you can use the engine to do what you want if you are able to develop your own triggers, conditions and actions. Documentation is here: docs.civicrm.org/civirules/en/latest – ErikH - CiviCooP May 22 '18 at 8:16
  • ErikH, how would I go about developing my own trigger? I have read through the documentation, but still pretty much lost on how to add a new trigger to existing extension code. I feel that I need a new Cron Trigger, maybe similar to the "Daily Trigger for Group Membership", but runs every 30 days. I have a smart group created for all "Active memberships". I think I would just need a cron trigger to fire every 30 days and simply run an action to add a point to each member in this smart group. If a contact is removed from the group, his points will not update which is ok for now. – Sudesh May 30 '18 at 15:55
  • Yes you can develop a cron trigger. The difficult part is to ensure it only runs every 30 days because the civicrm cron mechanism only allows for cron running daily, hourly or every time the cron runs. – Jaap Jansma - CiviCooP May 31 '18 at 7:38

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.