Storing functions on the CustomJS platform allows for dynamic input variables and simplifies testing. This method is ideal for reusable and complex logic. If you want to use quick scripts or simple logic in JavaScript, you can use the Execute Inline JavaScript module in Make.com.
You store your JavaScript functions directly on the CustomJS platform, where you can define parameters. Once stored, these functions can be selected and accessed within Make.com scenarios.
The stored function can then be accessed via Make with just a few clicks. These NPM modules are available in your function. The video below demonstrates how to select and execute a stored function action in Make:
Using native CustomJS modules for complex JavaScript logic and heavy workloads allows the code to run outside of Make's credit-based billing system, saving costs. You are billed based on requests, not per iteration, and can process many items in a single request, running up to 60 seconds of JavaScript per request.