I'm using Rules 7.x-2.11 and create new rules. I created additional fields in profile and when user select there from option list he got a new role. Next, i created new rule. When create new node with certain type drupal send mail to all users with this role.

EVENT Node insert

CONDITIONS Node is of type

ACTIONS Mail to users of role

It works, but i need put in email text username. In data selector i have only "node" and "site" selector's, how can i get "account" selector?

1 Answer 1


add rules conditional module, now in actions you can add more conditions, in actions fetch entity by id, node-author, drill until you find UID, add a conditional, add an if, entity has field, entity-fecthed-author-by-id, select your field, now you have what you need, repeat as needed, for every field, a conditional, an if and your field. done. Your rule will look something like this: enter image description here

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.