With Privatemsg and Rules modules, I want to create a rule :

Anyone create a node, a special role user recept accepted a privatemsg.

But when I create the rule, in the actions, meet a problem:

The "Data selector" in RECIPIENT, I can't find the role.

Does anyone have a solution ?

  • I'm sorry, I don't understand what you mean: "special role user recept accepted a privatemsg." Could you clarify? – Patrick Kenny Jul 10 '13 at 11:05
  • It means users who has role A, can accept a privatemsg. – Rylyn Jul 10 '13 at 15:00

The Recipient in the Privatemsg rules integration does not provide a user object, because the recipient could be a user or a role. (There is a Privatemsg function for sending messages to roles, not just individual users.)

So, this is a limitation of the Privatemsg rules integration. If you want to do this, you will have to add that functionality to the module yourself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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