I have a workflow which creates a node when another node is updated. I also have custom PHP code in this workflow. I can access some tokens like [node_added:title], but [node_added:nid] is blank. Any thoughts?

Comments

fago’s picture

Status: Active » Fixed

probably the nid is not set right now. e.g. on content is about to be submitted when it's created.

kulfi’s picture

But the other fields are? Is that intentional?

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

burlap’s picture

Version: 5.x-2.1 » 5.x-2.2
Status: Closed (fixed) » Active

This is also the case for example for node_loaded - most tokens (I haven't tried all) work, while [node_loaded:nid] doesn't. And for node_added: if node_added:title is available, why node_added:nid shouldn't?

burlap’s picture

Title: empty [node_added:nid] » empty [node_added:nid] and [node_loaded:nid]