API to Webflow CMS - Deleting item make the scenario run 20 times

Hey all !

I am working on a automation to delete every item of a collection in Webflow then make an API call and then create item from the API in a collection on Webflow.

First, I list every item and then I delete every item so I’m sure everything is updated, it’s maybe not the best solution that exist but that is the most easy for me.

As you can see, if there is 100 item to delete the scenario will make 100 API call and then 100 times the number of items there is in the API call.

How could I say that first it should delete all the item and when it’s finish do only 1 API call and create only 1 time all the item from the API call.

The output look like this :

Thank you in advance for any help ! And also should I publish the website when it’s over to make the job offer appearing on the website ?

If you need anymore informations don’t hesitate to put a message :slight_smile:

@samliew help me (thank you so much) and here is the solution for anyone looking to solve this problem.

You need to put an array aggregator after the “Delete Item” module, so that future modules will only run once. The aggregator source module should be the Trigger module (List items).

Here is the script updated.

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. 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 —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation