Increment Function module doesn't work

Greetings, I have a problem with the Increment Function module. As far as I understand it is a simple counter, but for some reason it doesn’t work in scripts that are run with webhook. No matter how many api-requests I send, the module always gives the number 1.


In the settings, of course, it is set to “never”. At the same time, if you put it in a separate script where the trigger is a manual start - everything works correctly.

I have tried many times with different scripts, uninstalled and reinstalled it - nothing changes.
I understand that Increment Function can be replaced by three datastore modules, in the order “get X, Update X=X+1, get X”, but firstly - I am annoyed by such a solution, and secondly - in the scale of thousands of runs of a large scenario, I want to optimize it as much as possible. Please suggest how to solve the problem!

1 Like

Hi @ox.savchenko.1

One webhook received is equal to 1 run occurring in Make. For the increment function to work, you would need something that has multiple items like an array in the received payload from the webhook. You could then iterate on each item from the array which would result in the incrementing function being used properly.

Example: Webhook receives Invoice record. Within an invoice record is an array of line items. Increment functionality used to identify how many total line items exist.

-@Trainward_Consulting

It does work for me on a timed schedule.

Screenshot 2025-06-18 165112

Make sure you’ve set it to Never, then try saving the scenario and refreshing the web page.

You can also delete the module, and add a new Increment function module.

If the issue persists, please contact Make support.

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

@samliew