I really enjoy using this module but I'm having some trouble getting it to work with rules. I'd like to know if what I'm trying to do is possible.

I have a user profile with an entity reference field. I have a rule that is triggered on user account creation that has an action "create node entity" with the variable "created_node_entity". I then added another action, "set a data value" that sets the user profile field containing the user reference to the "created_node_entity". Unfortunately, this doesn't work.

Is this a configuration error on my part or is it just not possible to set entity references with rules?

Comments

ptmkenny’s picture

Status: Active » Closed (works as designed)

I see that this is not possible currently with entity references. I was able to accomplish my task using the Relation module instead.

mordonez’s picture

You need to create an action of "Save entity" before the "set a data value" action. (With "Force saving immediately" option enabled)

Anonymous’s picture

It's definitely possible, also make sure you are pointing the value towards the entity-created variable and not trying to find entity-created: nid or something like that..

bassplaya’s picture

Kline or Mordonez, could you give a more detailed description on how you accomplished this? I can't get it to work and I have the same issue. Please see my issue if you need more info: https://drupal.org/node/2110401

Cheers.

sillo’s picture

Issue summary: View changes

I know im very late with this answer - but in case you need it for the future, THIS http://drupal.stackexchange.com/questions/170192/drilling-down-into-an-e... really saved me.