Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
arlingtonvoicellc CreditAttribution: arlingtonvoicellc commentedComment #2
arlingtonvoicellc CreditAttribution: arlingtonvoicellc commentedI guess this is beyond doable in Drupal. Sad.
Comment #3
dkane CreditAttribution: dkane commentedIts 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
Comment #4
TR CreditAttribution: TR commented@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.
Comment #5
TR CreditAttribution: TR commented