Avoiding Duplicity of Lists and Tasks with Multiple Services

Hi everyone,

I’m facing an issue with my automation in Make and would like some assistance to resolve it. Here is the scenario:

Scenario:

I have a webhook that triggers an automation in Make, collecting data from a task in ClickUp.
This is the path i’m struggling with:

Since the webhook triggers other automations, only posting the issues, all the other part are going fine.

The task contains an array with 6 unique IDs that represent different types of services we offer (Service A1, A2, A3, B1, B2, B3).

At this point I need create a folder to insert alot of lists templated tasks to each one of the lists

I need to distribute tasks according to these IDs, creating lists and tasks in ClickUp without causing duplicates.

The iterator has (for now) 6 diferent services (Service A1, A2, A3, B1, B2, B3).
The first path, need to create a list for services Ax and Bx, but the template task is only created for Services Ax.
The the list on second path is for Ax Sevices, and the sub-route 1 is for all Ax, sub-route 2 for A2 and sub-route 3 for A3
The third list is for all Ax services.
The fourth route is for Bx services, and the sub-route one is for all Bx, sub-route two for B1, sub-route 3 for B2 and sub-route 4 for B3.

• I use a Router that triggers tasks according to the service IDs.

• IDs of Services A1, A2, and A3 are directed to routes 1, 2, and 3.

• IDs of Services B1, B2, and B3 are directed to routes 1 and 4.

• Each route can have additional sub-routes that need to avoid duplicity in list and task creation.

Problem:

• When multiple services pass through the same flow, there is duplicity in list creation.

• I need to ensure that a list is created only once and that all corresponding tasks are added correctly, even if multiple services use the same list.

What I have tried:

• Checking for the existence of the list before creating a new one.

• Using variables to store list and task IDs.

• Structure of routers and conditionals to distribute tasks according to service IDs.

Question:

How can I configure my automation to ensure that:

  1. Lists in ClickUp are created only once, even if multiple services pass through the same flow.

  2. Tasks are distributed correctly in the lists without causing duplicity.

Thank you in advance for any help!