# How to send(publish) payload data sequentially?

**URL:** https://discourse.nodered.org/t/how-to-send-publish-payload-data-sequentially/42980
**Category:** General
**Created:** [22 March 2021 05:03 UTC](https://discourse.nodered.org/t/how-to-send-publish-payload-data-sequentially/42980 "2021-03-22T05:03:30Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [22 March 2021 09:14 UTC](https://discourse.nodered.org/t/how-to-send-publish-payload-data-sequentially/42980/2 "2021-03-22T09:14:27Z")

</div>

I suggest reading the node-red docs page Writing Functions where it will show you how you can easily use `node.warn()` to insert debug messages into your function, which get displayed in the debug pane. That way you can work out which bit of your function is not working correctly.

Note that anything you send should be an object with, in your case I think, payload and topic properties, so you need to make sure that what you push into your `msg.reqList` array is be an object with those properties.

**[Edit]** Also, for the future please see this post for how to post flows or code so that the forum does not mess with it - [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/how-to-send-publish-payload-data-sequentially/42980)._
