# How can I use splitted msg in another function?

**URL:** <https://discourse.nodered.org/t/how-can-i-use-splitted-msg-in-another-function/26438>\
**Category:** General\
**Created:** [10 May 2020 16:23 UTC](https://discourse.nodered.org/t/how-can-i-use-splitted-msg-in-another-function/26438 "2020-05-10T16:23:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HELPME](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@HELPME](https://discourse.nodered.org/u/HELPME)\
**Post date:** [10 May 2020 16:23 UTC](https://discourse.nodered.org/t/how-can-i-use-splitted-msg-in-another-function/26438/1 "2020-05-10T16:23:27Z")

</div>

Hello everyone,

I'm stucked with my project for database, and I could use some help.  
I have a function node, which give me temperature data like  
Low  
High  
Medium  
and so on.  
My task is to give all the data to my TEMPERATURE database in sqlite.  
So I tried to make a variable for the temperature data according to Steve Cope's youtube video about how to store data in node red variables, and it worked. But I still couldn't upload the data with insert node to my table. So I used the Split function, and I thought I can upload the data one by one. But I couldn't figure it out, how can I use the splitted data in the insert node, becuse my flow is temperature\_function, Split,Debug (where I can see the data as I told you). I created the variables in the temperature\_function, and just after that I splitted. So can you help me please, how can I use the splitted temperature data instead of the data from temperature\_function? (when I inserted the temperature\_function's result, it was like the sqlite made only one column, which contained all the row.)  
I'm sorry if it's confusing how I described the situation, but I started today using sqlite, and I don't know which information you need., and also didn't find anything about the problem.  
Thank you for taking the time to help me.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [10 May 2020 16:25 UTC](https://discourse.nodered.org/t/how-can-i-use-splitted-msg-in-another-function/26438/2 "2020-05-10T16:25:23Z")

</div>

Hi, welcome to the forum.

It would help if you could post your flow here!

---

<div class="post-metadata">

**Author:** ![HELPME](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@HELPME](https://discourse.nodered.org/u/HELPME)\
**Post date:** [10 May 2020 16:27 UTC](https://discourse.nodered.org/t/how-can-i-use-splitted-msg-in-another-function/26438/3 "2020-05-10T16:27:59Z")

</div>

Hi, thank you.  
I would, but unfortunatelly I'm not allowed because I'm a new user it says.

---

<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:** [9 July 2020 16:28 UTC](https://discourse.nodered.org/t/how-can-i-use-splitted-msg-in-another-function/26438/4 "2020-07-09T16:28:05Z")

</div>

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