I have a content type of event.

The event content type has a date field to set the event date.

Each event has an "rsvp" flag. By clicking the flag, authenticated users should receive an e-mail reminder 48 hours before the event date.

How do you set this up in rules?

Comments

arlingtonvoicellc’s picture

Issue summary: View changes
arlingtonvoicellc’s picture

I guess this is beyond doable in Drupal. Sad.

dkane’s picture

Its actually quite simple and can be done with a 2 action rule.

The steps are as follows:

1. Fetch all users who have flagged a node with the "rsvp" flag
2. Add a loop and loop through the list of users created in step one
3. Inside the loop, use a send email action and specify the current user being referenced in the loop

TR’s picture

Status: Active » Fixed

@dkane gave one solution, here's another: When the user sets the RSVP flag, that generates an event that should be used to schedule the reminder e-mail for that user. This is a classic rules scheduler use-case (and since you tagged this with the "rules scheduler" tag I assume you were pursing the use of rules scheduler for this ...). No looping needed in this case.

TR’s picture

Status: Fixed » Closed (fixed)