Access flow ID in node HTML file

When the oneditsave function of my custom node is called, I need some code to be executed, and within that code I need the ID of the flow the node belongs to. Is this something that is possible ?

I cant remember if your node has access to z but that would be where I would start.

Otherwise:

RED.workspaces.active()
RED.view.selection().nodes[0].z

Though assumptions are made!

They both work, fantastic, many thanks for your help !