How to filter items

[
  {
    "next_page": 0,
    "items": [
      {
        "id": 108,
        "timestamp": 1704981982,
        "code": "INC111111111",
        "title": "Some Text",
		"taskType": {
          "title": "Normal",
          "guid": "654321",
          "systemId": null
        }
      },
      {
        "id": 109,
        "timestamp": 1704984844,
        "code": "INC222222222",
        "title": "Some Text",
		"taskType": {
          "title": "Urgent",
          "guid": "123456",
          "systemId": null
        }
      }
    ]
  }
]

I get this data from API. Can someone show me an example how can I filter these items? Lets say I want to pass on items only where items.tasktype.guide = 123456 how can I do that.

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:

Hey @Tom_M,

You can do something like the below, The code node just outputs your data. We then split it out into individual items to process and use an if node to check the value of taskType.guid.

1 Like

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