# Multiple Users of same flow

**URL:** https://discourse.nodered.org/t/multiple-users-of-same-flow/15289
**Category:** General
**Created:** [9 September 2019 05:22 UTC](https://discourse.nodered.org/t/multiple-users-of-same-flow/15289 "2019-09-09T05:22:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chandrashekar](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@chandrashekar](https://discourse.nodered.org/u/chandrashekar)
#### Post date: [9 September 2019 05:22 UTC](https://discourse.nodered.org/t/multiple-users-of-same-flow/15289/1 "2019-09-09T05:22:58Z")

</div>

Iam new to Node-Red, Was creating a flow for multiple users so they can insert data to Mysql database.

i have used join node with 2 different topic. So upon 2 submits join node output will be generated and data will be dumped into database.

problem here is if 2 users using the same flow, if one user submits one topic and another user submit another topic , join node will generate output getting data of 2 users and wrong data is dumped into database.

Is there any other way

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [9 September 2019 06:00 UTC](https://discourse.nodered.org/t/multiple-users-of-same-flow/15289/2 "2019-09-09T06:00:57Z")

</div>

So you have two distinct flows to achieve 1 db update? That would seem to be fraught with issues anyway. Is there no way you can combine that to a single flow? Then you wouldn't need the join and your multi-user inputs would work as expected (unless those users try to update the same record).

---

<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: [9 September 2019 06:38 UTC](https://discourse.nodered.org/t/multiple-users-of-same-flow/15289/3 "2019-09-09T06:38:52Z")

</div>

Are both items submitted by the user? If so then use the dashboard form node which will submit them both at the same time.

---

<div class="post-metadata">

### Author: ![chandrashekar](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@chandrashekar](https://discourse.nodered.org/u/chandrashekar)
#### Post date: [9 September 2019 07:52 UTC](https://discourse.nodered.org/t/multiple-users-of-same-flow/15289/4 "2019-09-09T07:52:15Z")

</div>

Thanks for the replying.

Problem fixed, there was common element in both submit, so used a function to verify after Join node.
