# Change topic dynamically

**URL:** <https://discourse.nodered.org/t/change-topic-dynamically/87930>\
**Category:** General\
**Tags:** modbus, influxdb\
**Created:** [14 May 2024 06:46 UTC](https://discourse.nodered.org/t/change-topic-dynamically/87930 "2024-05-14T06:46:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fahrerkrieger](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@Fahrerkrieger](https://discourse.nodered.org/u/Fahrerkrieger)\
**Post date:** [14 May 2024 06:46 UTC](https://discourse.nodered.org/t/change-topic-dynamically/87930/1 "2024-05-14T06:46:04Z")

</div>

Hello Node-Red Community. I have a question for all of you. I have created a node red flow, where I am reading the data from a Modbus Server and storing the values in my Influxdb Database. In the Picture below, you will see the whole Idea.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4baee40b7f38ba373db6a7500bcd4d7f1426eccf.png)  
Now, in order to store all these values in the database, i need to assign a topic in my Modbus-Read Node. In the picture below, you can see the idea.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f446eb511ecca143304da2846ee0ee5127624bb2.png)  
Now I am planning to add a csv file or an xml file, which will already have the topic names pre defined. Is there any way, that I can change the topic with the data from the csv or xml file?

---

<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:** [12 August 2024 06:46 UTC](https://discourse.nodered.org/t/change-topic-dynamically/87930/2 "2024-08-12T06:46:44Z")

</div>

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