Respond to webhook returns only one item

I did an automation that is as follows, it has a webhook and waits for a get, when this get happens it makes a query in a postgresql database and brings information and uses a respond webhook to return to the webhook all the information it brought from the database

the problem is that when finishing the workflow it said it returned 16 items, but when testing the api and connecting to it to see what I will receive, I only receive the first item. What can I do?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi Enzo,

depending on your n8n version, you could use

with “Concatenate Items” to put all items into a single field in a single item.

or (n8n version higher than 1.21.0)

with “All Item Data” to put all items into a single field in a single item.

then you should receive all records in a json output as response to your webhook.

  • Kurt

@Enzo_Carmo , there is a simpler solution, option “Execute Once”:

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