Search Notion database for duplicate value, if no duplicate, create database item

Hello all,

Beginner here, trying to add more modules. My goal is to create a database item if a value isn’t duplicated.

To explain the parts of the scenario relevant only to this question:

  1. Webhook initiates the scenario with data.
  2. A “Search Objects” Notion module. “Search Objects” is “Database Items”. The filter is [LinkedIn (URL)] “Equals” [Webhook LinkedIn URL].
  3. The filter just after “Search Objects”. This is where I’m having trouble.
  4. The module just after this filter is “Create a Database Item”

My quesiton is about number 3. As far as I can tell, I have two options for filtering:
A. The “Properties Value” of the [LinkedIn (URL)] “Does not exist”.
B. The “Properties Value” of the [LinkedIn (URL)] “Does not equal” [Webhook LinkedIn URL].

My sense is that both should work, but I’m honestly not sure what sort of output the “Search Object” module would spit out.

Thank you.

1 Like

Hello Abraham,
It sounds like you could filter by “Total number of bundles” < 2 - this way, if the Search Objects outputs 2 or more results (which means there is a duplicate), the scenario wouldn’t continue for that output

1 Like

Thank you, Simo, I will try this.

For clarification, does this mean that “Search Objects” by default gives a single bundle output even if nothing fits the filter criteria?

If so, is the single bundle the one that was pushed out by the webhook at the beginning of the scenario?

Thanks again.

Update on your original advice. It worked!

1 Like