Trying to exlude items containing a string from an array coming from another node

Hey,

I’m familiar with all kinds of ETL processes and automation tools, but n8n is new to me. So I hope the expertise of all of you can help me achieve my goal:

I want to create appointments in my Google Calendar but the feed with appointments to make always contains everything.

So I get a list of appointments I want to create from an HTTP node, but I need to exlude appointments that are already there.

So far I’m able to retrieve the requested appointments from an API, and in the same workflow (but a parallel path) I’m able to retrieve the already existing appointments from my Google Calendar.

Both paths meet eachother again in an merge node.

But now I need to exclude the existing appointments from the incoming feed.

I’ve tried several ways already, but basically what I’m missing is an option in the filter node that checks a property of an item against an array.

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:

n8n Version: 1.74.2
Database: Postgres 16
Running via: selfhosted-ai-starter-kit in Docker (On WSL / Ubuntu 2204)

Hey @LazyBoy Welcome to our community!
You can achieve this by choosing Combine mode in Merge node and then switch Output type to “Keep-Non-Matches”

1 Like

Thanks, that indeed works perfectly

1 Like

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