2

I have a content type A that has a node reference to type B. Type B has an email address field that I would like to use in a Rules Action. How do I get the value of a referenced node's fields?

Note: After much searching, I tried the steps Link suggested in Rules: Do action on the field of referenced node, but after adding the Entity has Field condition on my node reference field, there are not any replacement patterns like node:node_reference:field_email, just the normal node:field_email.

0

Try adding a Rules Action (as the very first action) like "Fetch entity by id", which in your case is probably something like node:node_reference:nid.

This should make the data available from the node that is referenced via your node reference field.

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.