I want users to automatically send all their friends a privatemsg when they post new content, specifically blogs in this case.
Here is my current setup:
Event: After saving new content
Condition:Check to see if users are related. User A: content's author. User B: Acting user. Relationship Types: Friend.
Condition: Content has type
Action: Send privatemsg. Recipient: Acting User. Author: content's author

This did not work for me, any suggestions?

Comments

klausi’s picture

Component: Rules Core » Rules Engine

The content author is the acting user in this case. I guess the rule does not fire because the user is not a friend of herself.

jrivelli’s picture

Hmm. So I guess the current setup will not work properly. I'm thinking this may need to be something I do with VBO and views.

tr’s picture

Component: Rules Engine » Rules Core
Issue summary: View changes
Status: Active » Closed (works as designed)

Yeah, not sure what you mean by "Acting user", but User A is the one who post the new content and triggers the Rule. User A should have an entity reference to all his/her friends, one of which is User B. So your rule could loop and send mail to all friends of User A. I don't see any obstacles here, and I don't see why you shouldn't be able to do this. If you are still having problems in a current version of Rules, please open a new issue, export your Rule, and post it in that new issue - that way we can see exactly what you're trying to do and help to to solve the problem.