# How can I install flows on an NR instance running within FlowFuse

**URL:** <https://discourse.nodered.org/t/how-can-i-install-flows-on-an-nr-instance-running-within-flowfuse/90467>\
**Category:** FlowFuse\
**Created:** [27 August 2024 03:21 UTC](https://discourse.nodered.org/t/how-can-i-install-flows-on-an-nr-instance-running-within-flowfuse/90467 "2024-08-27T03:21:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pankajithetaai](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pankajithetaai/32/93935_2.png) [@pankajithetaai](https://discourse.nodered.org/u/pankajithetaai)\
**Post date:** [27 August 2024 03:21 UTC](https://discourse.nodered.org/t/how-can-i-install-flows-on-an-nr-instance-running-within-flowfuse/90467/1 "2024-08-27T03:21:10Z")

</div>

Here is my use case that is targeted towards non-technical persona.

1. A user goes to a dashboard
2. Selects a particular flow
3. That flow is installed on that instance’s NR

I am unable to access the NR /flows endpoint from within FF. Any assistance is appreciated.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 August 2024 06:51 UTC](https://discourse.nodered.org/t/how-can-i-install-flows-on-an-nr-instance-running-within-flowfuse/90467/2 "2024-08-27T06:51:11Z")

</div>

Why not simply have all of the flows set up on an instance and offer the user set the ability to enable or disable the flow of their choice?

---

<div class="post-metadata">

**Author:** ![pankajithetaai](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pankajithetaai/32/93935_2.png) [@pankajithetaai](https://discourse.nodered.org/u/pankajithetaai)\
**Post date:** [27 August 2024 12:08 UTC](https://discourse.nodered.org/t/how-can-i-install-flows-on-an-nr-instance-running-within-flowfuse/90467/3 "2024-08-27T12:08:13Z")

</div>

Thank you. Any advice on the endpoint to use to enable the flows?

Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 August 2024 12:24 UTC](https://discourse.nodered.org/t/how-can-i-install-flows-on-an-nr-instance-running-within-flowfuse/90467/4 "2024-08-27T12:24:52Z")

</div>

There is no endpoint required! (not really - you have the dashboard buttons and toggles etc to pass data to the Node-RED instance built in!)

You could simply do this with persistent context.

### Node-RED instance

#### FLOW 1

inject --\> switch node (is flow.flow1enabled true?) --\> do stuff

#### FLOW 2

inject --\> switch node (is flow.flow2enabled true?) --\> do stuff

#### FLOW n

inject --\> switch node (is flow.flownenabled true?) --\> do stuff

#### DASHBOARD BUTTONS

button 1 --\> toggle flow.flow1enabled  
button 2 --\> toggle flow.flow2enabled  
button n --\> toggle flow.flownenabled

---

<div class="post-metadata">

**Author:** ![pankajithetaai](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pankajithetaai/32/93935_2.png) [@pankajithetaai](https://discourse.nodered.org/u/pankajithetaai)\
**Post date:** [27 August 2024 13:12 UTC](https://discourse.nodered.org/t/how-can-i-install-flows-on-an-nr-instance-running-within-flowfuse/90467/5 "2024-08-27T13:12:15Z")

</div>

Ah. Thank you
