# InfluxdB Out Node in Node Red

**URL:** <https://community.influxdata.com/t/influxdb-out-node-in-node-red/31289>\
**Category:** Systems\
**Created:** [August 26, 2023, 2:34pm UTC](https://community.influxdata.com/t/influxdb-out-node-in-node-red/31289 "2023-08-26T14:34:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edaustin](https://avatars.discourse-cdn.com/v4/letter/e/ed8c4c/32.png) [@edaustin](https://community.influxdata.com/u/edaustin)\
**Post date:** [August 26, 2023, 2:34pm UTC](https://community.influxdata.com/t/influxdb-out-node-in-node-red/31289/1 "2023-08-26T14:34:37Z")

</div>

Does anybody know how to pass a payload, topic or flow variable into the InfluxdB Out node, as the measurement name/field?

Usually {{payload}} or {{msg.topic}} works in order to insert the payload/topic into another node. But clearly that doesn’t work for an ‘influx out node’ in node-red.

---

<div class="post-metadata">

**Author:** ![grant1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/grant1/32/15107_2.png) [@grant1](https://community.influxdata.com/u/grant1)\
**Post date:** [August 26, 2023, 6:05pm UTC](https://community.influxdata.com/t/influxdb-out-node-in-node-red/31289/2 "2023-08-26T18:05:32Z")

</div>

Hi @edaustin

Here is what my InfluxDB Out node settings look like:  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/b/bb74a850ffdc5031f451283215603d34e4598a81.png)

and here is the function node that formats the data just before this node, where I am feeding two fields & field values (temperature and millivolts), each with the tag “Meastype” and tag value “actual”. In another flow, I am grabbing the setpoint value and defining that as the tag value, so that in InfluxDB I can compare actual vs setpoint.

```auto
msg.payload = [
    [{
        temperature: msg.payload.temperature
    },
    {
        MeasType: "actual"
    }],
    [{
        millivolts: msg.payload.millivolts
    },
    {
        MeasType: "actual"
    }]
];
return msg;

```
