'Items' field in API call

Describe the problem/error/question

I have an API call that returns next data:

{
  "response": {
    "page": 0,
    "total": 0,
    "count": 0,
    "items": []
  }
}

After that call I want to filter ‘items’ from json for each item from previous node with ‘Code’ node, but getting next error.

What is the error message (if any)?

Legacy `items` is only available in the ‘Run Once for All Items’ mode.

Please share your workflow

Information on your n8n setup

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

Thank you in advance!

Hi @Syrax

You can use the “split out” node to split the items into n8n items/records. after that you can simply use an if node for example to filter.

Node ‘split out’ outputs (IMAP items * API items) when I need to process data from each email. I’ll try to explain.

I want to create something like ‘task manager’: when you write a letter to specific address that IMAP connection in the start of automation will fire. Then by email addresses I’m searching in CRM for users and then assign them roles in created task.

The problem is when there are more than one email when IMAP trigger fires.

Would appreciate if somebody will help with this problem.

Here is full automation for now. If there is only one email from IMAP it works well. But if there are two or more it breaks on nodes ‘owners_list’ and ‘followers_list’.

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