# Trouble getting the results of a looped subflow to write into an array

**URL:** <https://discourse.nodered.org/t/trouble-getting-the-results-of-a-looped-subflow-to-write-into-an-array/95134>\
**Category:** General\
**Created:** [5 February 2025 05:02 UTC](https://discourse.nodered.org/t/trouble-getting-the-results-of-a-looped-subflow-to-write-into-an-array/95134 "2025-02-05T05:02:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [5 February 2025 08:03 UTC](https://discourse.nodered.org/t/trouble-getting-the-results-of-a-looped-subflow-to-write-into-an-array/95134/3 "2025-02-05T08:03:43Z")

</div>

I assume that you have an `inject` node connecting to the function node and that `inject` node is sending a timestamp as msg.payload. If you change the `inject` node to send a string, you will see that spring replacing the time stamps.

When you have an issue it is wise to provide a simple flow showing the issue.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/trouble-getting-the-results-of-a-looped-subflow-to-write-into-an-array/95134)._
