Use a Node Name as a variable in the workflow

Hi … In my workflow, I have a few “DB Query Reader” nodes that I have renamed so that I know what data each node is fetching. The node named “MenuItems” fetches the menu items on each bill as an example.

Is it possible to use the node name as a variable later in the flow? For example, I want to create a path variable for the parquet writer which writes the data at the end of the flow which includes the name I have given to the “DB Query Reader” node.


1 Like

When you say “node” in this case, are you referring to a component? You can’t actually rename nodes, you can only add descriptive text beneath them - whereas components you can actually rename yourself.

At any rate, I don’t believe you can refer to the names you give to components later on in the workflow - at least, not in a dynamic way. You could always create a flow variable inside a component, but if you change the name of the component later, you would have to manually update the flow variable too.

(Or maybe I just don’t understand what you’re trying to do.)

Hi @ScottF

That is exactly what I would like to do … use the label beneath node as a variable. I figured it was a very long shot…



This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.