Unleash the superpowers of functions in Make.com 🤩

With functions you can manipulate and process data within your scenarios.

startcase(Max van Collenburg)

substring(8.order_product_name;0;8)

round(1.2)

parseDate(2029-12-22;YYYY-MM-DD)

ifempty(A;B)

decodeURL(Automate%20your%20workflow)

length(1.first_name)

replace(1.subject;van;emptystring)

addDays(now;3)

You can’t build advanced scenarios without using functions.

They allow you to insert & alter data.

In this guide, I’ll cover everything you need to know so you can get started with functions.

Let’s get started.

What is a function?

In Make, you can map variables into fields.

You can use functions to alter those mapped variables.

A simple example of a function is capitalize() which will capitalize any text you put between the brackets.

(I’ll show you examples in a bit)

There a different kind of functions.

  • Text functions: modify text. For example, capitalize first names.
  • Math functions: make calculations. For example, calculate 20% of an order value.
  • Date and time functions: convert or modify dates. For example, add 3 days to the current date or convert 5 PM to 17:00.
  • Array functions: transform array data. For example, sort items in an array.

We’ll dive deeper into all of these later on in this guide, no worries if there is something you don’t understand yet.

(especially those arrays are confusing, I know)

How do you use a function?

Using a function is pretty simple, and not much different from mapping a variable.

You click into a field in a module, and the mapping popup opens. There, you can find all functions in the top.

TK picture mapping panel

From there, click on for example the TK to get the string functions which allow you to alter text.

TK

Then, click on the function you want to use and it will be inserted into the field.

GIF

Now, you can add one of your items inside the function like I did with the first_name item here that I got from the previous module.

Simple function example

Let’s say you have the text we love automation

And we would like to capitalize the first letter of every word.

To do that, you need the capitalize() text function which will capitalize the first letter of every word.

capitalize(we love automation)

= We Love Automation

As you can see, it capitalized the first letter of every word like it should 🙌

Mapping items into functions

Now, we can do the same dynamically by inserting items in our functions.

Let’s say we have an item from a previous module called first_name, and the value this scenario execution is max

We want to dynamically change the value of the item, so we map the item inside the function like this:

capitalize(1.first_name)

= Max

As you can see, max became Max 🙂

And if it’s emmah in the next scenario execution, it will become Emmah 🕺

Different type of functions

There are 5 different types of functions, that let you each manipulate and process different types of data.

Below, you’ll find lessons for each type of functions.

I recommend starting with the text functions because those are easiest to understand.

capitalize(1.first_name)

Text functions

Manipulate any kind of text.

round(1.2)

Math functions

Make simple or complex calculations.

addDays(now;3)

Date & time functions

Parse and modify dates and times.

map(emails[];email)

Array functions

Transform array data easily.

ifempty(A;B)

General functions

Fine-tune your mapping in a scenario

And that’s it!

Functions in Make.com are incredibly powerful tool to enhance your scenarios.

I hope this guide helped with understanding functions! 🙌

Get my best tips for Make.com 🧙‍♂️

Practical & fun automation tips that are easy to implement in your online business

    * No spam, ever.

    Become a Make.com expert

    Learn how to save hours a week in your online business fast

    Tell me more about the course! 🔥