Good day everyone.
I have looked around and could not find any reasonable solutions (apologies).
What I'm trying to do is try and retrieve the status of each specific nodes in a subflow, and modify the payload message based on what node was outputting a status using a function node.
What I have done so far is modified the actual IDs of nodes using Node-RED's Admin API PUT flow/global
Please see image below, I have modified one node's ID as "node_startrecord"
I want to access "node_startrecord" in a function node such as:
but apparently, the nodeID is different upon deploying the flow.
One important note with what I'm trying to do is, it is necessary to define static IDs for each nodes as the flows I will be creating are used in multiple environment.
Thank you very much!