Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
fagoprobably the nid is not set right now. e.g. on content is about to be submitted when it's created.
Comment #2
kulfi CreditAttribution: kulfi commentedBut the other fields are? Is that intentional?
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
burlap CreditAttribution: burlap commentedThis 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?
Comment #5
burlap CreditAttribution: burlap commented