--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/c4d6e929-055f-426e-931b-401beae500e0%40googlegroups.com.
It still isn't very clear to me what you are trying to do.>Is there any way to get the flow itself or at least the id of it so that I can request Get/flows/flowid ?Which flow do you mean? The complete flow config can be obtained by a get request to /flows. But I think you mean you want to get an individual flow config? If you search through the complete config for 'tab' nodes, that will give you the list of flow ids present. How you then pick which of those flows is the one you want will depend on what you're trying to do.Nick
On 8 February 2017 at 13:16, Aly Saleh <aly.mo...@gmail.com> wrote:
I want to create a sub flow that takes a flow JSON as an input and send it somehow, the problem of your proposed solution as I understand, is that it assumes I already know the flow id so then I could go and parse the flows file searching for my flow, however, the one developing the flow does not have its idyes, i have also thought it would be recursive, but isn't it also the same idea of creating an export node ?Thanks for your reply
On Wednesday, February 8, 2017 at 2:08:46 PM UTC+1, Julian Knight wrote:Do you just want the TEXT of the flow or are you trying to create a new flow from the existing?The former is easy since the flow file is JSON so you can simply read it as a file and then parse it. The latter would seem to be recursive so I'm not sure if it would be possible or even safe.
On Tuesday, 7 February 2017 13:51:28 UTC, Aly Saleh wrote:Hey,I am kind of new to node-red but thanks for the awesome work.I have a use case where I need to input the flow itself as a json into a subflow. Is there any way to get the flow itself or at least the id of it so that I can request Get/flows/flowid ?I know if I exported the flow from the ui, I could get it then use it into the subflow, however that would require some manual work, which I would like to avoid.any ideas?Thank you
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.