Find if a Collection Contains a specific collection

Hello there,

I’m struggling with that since 2 days. I want to use Brevo and create List only if my List doesnt exist.

So I created a Variable call “ListOfTheDay” with the value = now. (date of the day)

So, I want to have a list for every day but I don’t want to create a new list if I already have this list created. (Yes my scenario will be call multiple times a day).

So, I get all list from brevo (7 lists) onto multiple Collection.

I want to check every List or check if a List with the Name = now, if yes get the List ID if not create new list.

I tried multiples way : formula, iterator… Not able to do it :frowning:

You guys can help me please ? :slight_smile:

Welcome to the Make community!

You have not yet provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any error(s).

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your full scenario? Also include screenshots of any error messages, module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and prevent tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

Sharing these details will make it easier for others to assist you.

Hi thanks for your help

Here is what you need :

[
    {
        "nameOfList": "Concours HEC"
    }
]
[
    {
        "id": 28,
        "name": "Contacts impliqués dans les conversations",
        "folderId": 27,
        "uniqueSubscribers": 1,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 1
    },
    {
        "id": 25,
        "name": "identified_contacts",
        "folderId": 24,
        "uniqueSubscribers": 0,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 2
    },
    {
        "id": 24,
        "name": "List Booking : 2025-04-21 - lancé le : 11/05/2025",
        "folderId": 1,
        "uniqueSubscribers": 2,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 3
    },
    {
        "id": 9,
        "name": "Concours HEC",
        "folderId": 1,
        "uniqueSubscribers": 35,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 4
    },
    {
        "id": 8,
        "name": "Gagnant concours EN",
        "folderId": 6,
        "uniqueSubscribers": 53,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 5
    },
    {
        "id": 7,
        "name": "Gagnant concours FR",
        "folderId": 6,
        "uniqueSubscribers": 106,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 6
    },
    {
        "id": 5,
        "name": "FromDoudou",
        "folderId": 1,
        "uniqueSubscribers": 300,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 7
    },
    {
        "id": 4,
        "name": "ConcoursStValentin",
        "folderId": 1,
        "uniqueSubscribers": 297,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 8
    },
    {
        "id": 3,
        "name": "old-rdv",
        "folderId": 1,
        "uniqueSubscribers": 0,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 9
    },
    {
        "id": 2,
        "name": "Votre première liste",
        "folderId": 1,
        "uniqueSubscribers": 0,
        "totalBlacklisted": 0,
        "totalSubscribers": 0,
        "__IMTLENGTH__": 10,
        "__IMTINDEX__": 10
    }
]
[
    {
        "hasList": [
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null
        ]
    }
]

blueprint.json (5.4 KB)

This one uses 4 operations per run max, Just make sure there are not 2 list with the same name on your account because it will break
Change the timezone of the “Create a List” module to your timezone, look for your’s here
{{formatDate(now; “YYYY-MM-DDTHH:mmZ”; “America/Argentina/Buenos_Aires”)}}

  1. List all Brevo List
  2. Transforms all invalid dates (like text) to 30/12/1999, then compare the list name to the now variable with the date format DD/MM/YYYY.If there is a list with the same date as today then makes a JSON string with the List Data, if not, then makes an empty string.
  3. The Router has 2 routes with one filter on top. The filter checks if the Text Aggregator text contains “List ID”. If it does, it passes; otherwise, it goes to the fallback route.
  4. In the top route the JSON string transforms to a collection, with the Parse JSON module. The “Get a List” gets all the data of the list
  5. The fallback route creates a new list
    I think it works fine
    Bravo List.json (12.3 KB)