1

I have some OG groups in my site. Each group is an online classroom.

The membership has a few fields (I use the default membership), and one of those fields is a select field with "approved" or "not approved" information about each student's final exam.

I would like to use rules to send an email to each student that change that OG membership field status to "approved". I want this workflow only for users of "exchange-student" role.

But I cannot do that because it seems that I didn't fetched the OG membership. I don't know what I'm doing wrong here.

This is my Rule:

Event:

After updating an existing og membership

Conditions:

Entity exists by property (Parameter: Entity type: OG membership, Property: Exam, Value: Approved)

User has Role (Parameter: User: [site:current-user], Roles: exchange-student)

Action: Send a message (Parameter: Receptáculo: [site:current-user], Private message author: [site:current-user], Private message subject: Aprobaste, Private message body: Mensaje de Prueba)

What am I doing wrong? What am I missing?

Thanks for your help.

1 Answer 1

0

I believe the answer lies in your Conditions.

You are checking whether the current user has the appropriate role.

See if you can find a token for the user whose membership has been changed.

2
  • Hi there! Thanks for your answer. I suspected about the current-user condition, but I have no way to select the membership of the user that has been changed. Maybe adding a different event (?) in order to make available new conditions...?
    – Rosamunda
    Commented Sep 23, 2014 at 4:10
  • I haven't worked with OG so I'm afraid I can't help any more than that.
    – Darvanen
    Commented Sep 23, 2014 at 4:15

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.