How to create an unique node ID

I create a flow > export to json file.
Then import this flow on another PC and the node id is changed.


How do I make the node id unique when creating a flow,
immutable when importing flow on another PC?
Thanks for your help!

You don't. Nor should it matter. The id is an internal detail that nodes don't need to care about. Why do you need it ?

1 Like

Since I want to handle the exception when accessing a non-existent folder by the catch node associated with the switch node, then I will create that non-existent folder,
and in the switch node uses node id to do the branching condition

You can use the node's name property for the same purpose - it will appear as

That will mean the rules in the Switch node will also be much clearer to understand.

1 Like

@knolleary Thank you very much!

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