When a new user account is created, I use a Rule to create a new taxonomy term of the form [user-id]_faves (using a Token).
I would like to also use a Rule so that when a user Flags a node, the taxonomy term [user-id]_faves is attached to the node. Unless I'm mistaken, in order to make the term available for Rules to attach to the node, I first have to load the term with a Rule.
Here's my problem: When creating the Rule to load the term, I have two options. I can choose the term from a drop-down list (except that it doesn't exist yet), or I can input the term id, but I cannot input the term name. But since the term is created on the fly whenever a new user account is created, I don't know ahead of time what the term id will be.
Is there a way to load the term using the term name instead of the term id? Or is there a way to discover "on the fly" what term id is associated with a particular term name? Thank you so much!
Comments
Comment #1
planstoprosper commentedI swear, 90% of my problems with Drupal can be solved just by finding the right words to put in the search field. I stumbled across this solution which took me most of the way there. In case anyone else who is looking for the same thing stumbles across this page, here's my final solution: