Insert or update item in a CMS collection Webflow

Hi
I have a list of items that I retrieve via an API call.
I want to insert these items into a Webflow collection.
However, I would like to do a check before creation on a field named codeFormation. If this code already exists in my Webflow, I would like to update it. If it doesn’t exist, I would like to insert it.
If i run the scenario, items are created on my Webflow
can you help me?

Welcome to the Make community!

You’ll need to fetch the existing list of items before you can create a filter against the array of items.

To make an array, use an array aggregator module.

Screenshot_2024-10-10_111013

Then, use a router with filters to check the field against the array of existing Webflow items.

Aggregators

Every result (item/record) from iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

There are other types of aggregator modules, click the below links to find out more:

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.