Loop over terms to search, stop looping if found, create organization otherwise

Describe the problem/error/question

Triggers are generated by form inputs. The user fills email and company name amongst other things.

In order to avoid duplicates in pipedrive, I want to be able to loop over multiple terms (web domain extracted from user email, company id which is a processed company name, raw company name).
I want to loop over each term until a pipedrive organization is found, or create 1 otherwise.

I’ve tried multiple flow, including insights given here: https://community.n8n.io/t/pipedrive-node-search-an-organization-if-not-found-create-one/16996
But it doesn’t work as from my understanding split in batch cannot stop looping under any condition.

Information on your n8n setup

  • n8n version: 1.9.3
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via npm:
  • Operating system: Ubuntu 22.04

hi @syffs

yes, Split in Batches cannot. But it can be done with IF node after the split node

1 Like

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