I used the answer in How can I send email to user that is not logged in since 30 days? to successfully set up an action set component that would email the user and a rule that would schedule that component delayed by 30 days. It's doing everything I want to except for one thing.

If the user has completed the course (course module) I don't want to nag them about being inactive. However, it doesn't look like I have access to that information when the action set gets evaluated.

The course module has some custom events and the information about course completion is exposed to rules via entities. If I create a rule triggered on the course_updated event I have access to the completion data I need (like this one https://www.drupal.org/node/2151827), but when the event is simply user login or it's triggered by the scheduler, I don't have access to that entity.

Do I need to add a custom condition or can I somehow query the course_report entity for the user who is scheduled?




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.