# Using Influxdb node in a subflow - cannot set scope of config node

**URL:** https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499
**Category:** General
**Created:** [31 October 2023 16:55 UTC](https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499 "2023-10-31T16:55:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [31 October 2023 16:55 UTC](https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499/1 "2023-10-31T16:55:28Z")

</div>

If I add an MQTT node to a subflow, then in the server setup I select to add a new server, then at the bottom of config node's edit screen I get a dropdown that allows me to select the subflow as the context for the node.

However, if I do the same with Influxdb node from node-red-contrib-influxdb then the db config node does not have that dropdown. That, I believe, prevents me from specifying the database via subflow properties, which requires a separate config node for each instance of the subflow.

Is this caused by something missing from the influxdb node that allows for this feature?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [2 November 2023 14:07 UTC](https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499/2 "2023-11-02T14:07:26Z")

</div>

Any thoughts anyone?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [2 November 2023 14:54 UTC](https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499/3 "2023-11-02T14:54:09Z")

</div>

I would post an issue on GitHub for the node.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [2 November 2023 20:48 UTC](https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499/4 "2023-11-02T20:48:27Z")

</div>

I was hoping someone would suggest what might cause this so I could submit a PR if the fix is simple. Plus it appears, sadly, that the node is no longer supported, judging by the number of [unaddressed issues](https://github.com/mblackstock/node-red-contrib-influxdb/issues).

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [3 November 2023 16:10 UTC](https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499/5 "2023-11-03T16:10:52Z")

</div>

I have posted an issue, but I have little hope of anything happening.

> <https://github.com/mblackstock/node-red-contrib-influxdb/issues/141>
>
> In order to use the node in a subflow and configure the db using subflow propert…ies it is necessary to configure the db node with subflow context. In the db config node, when the node is inside a subflow, there should be a dropdown box allowing the subflow context to be set. Each instance of the subflow will then have its own config node. The dropdown box is not present.
> 
> To replicate the issue add an influxdb node to a subflow and add a new db config. The dropdown at the bottom right is not present.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [2 January 2024 16:11 UTC](https://discourse.nodered.org/t/using-influxdb-node-in-a-subflow-cannot-set-scope-of-config-node/82499/6 "2024-01-02T16:11:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
