Hi all,

I have a birthday field for all my user accounts.
I have a rule which makes an event out of that field when the users login.
But I want to schedule this rule once a year.

I tried to add a fetch action, but I do not know how to fetch all user accounts.
I can fill in the type (user) and the property (field-birthday), but I do not know what to use as a property value to get all users who have filled in the birthdayfield.

Can someone help me with that.

Comments

Tsjippy created an issue. See original summary.

tr’s picture

Status: Active » Fixed

Rules have the following structure:

WHEN an event happens
IF conditions are right
THEN take an action.

Recognize that processing all the existing users on your site is a separate task from the day-to-day job of ensuring that all new users are handled correctly.

To process all your existing users, you really ought to use drush or custom code or a shell script. I'm not going to discuss that here.

Let's look at the day-to-day task of maintaining your site with Rules:

WHEN a user is updated.
IF the birthday field has changed.
THEN schedule a rule to execute every year on the new birthday.
THEN also unschedule the rule on the old birthday, if it exists.

The rule you will schedule is basically the rule you already have written which makes an event on that date.

Status: Fixed » Closed (fixed)

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