Define dynamic flow Id

Hi All,

I am facing an issue in defining custom flow Id. Only approach I could think of is to define 1 node to define flowId then use it everywhere, which I am not sure if feasible. Please let me know If Nodered provide anything to define variables which can be used anywhere in flow i.e. topic and In cloud service by getting flow details using admin api.

I am creating different Flows in my NodeRed Application which is communicating over message broker.
I have used flow-id in the message broker topic to communicate between different flows.

How can use flowId in different flows dynamically, I am also getting all flows using admin API and saving the details in db at cloud service. How can define and use flowId dynamically for communication between the Nodered instance and other cloud services over the message broker?

Thanks in advance.

Regards,
Saurabh