Skip to main content

Using functions

When mapping items, you can use functions to create complex formulas. The functions available in Make are similar to functions in Excel or those in other programming languages. The functions let you perform various transformations of item values, such as converting a text to uppercase, trimming a text, converting a date into a different format, and many others.

Inserting functions into fields

Functions can be inserted into fields the same way as items. If you click into a field, the mapping panel pops up.

The mapping panel contains several tabs:

Using functions 1 .png

To insert a function into a field, click the function name or drag it to the field.

Example: shortening a tweet

When posting a new tweet with the Twitter > Create a tweet module, you should not exceed Twitter's 280-character limit. Otherwise, the module throws an error. If you map a text item that can contain more than 280 characters into the module's Status field, you can use the substring() function to limit the tweet to 280 characters:

Using functions 2.png

Using Google Sheets functions

If you miss a function, but it is featured by Google Sheets, you may use it like this:

  1. In Google Sheets, create a new empty spreadsheet.

  2. In Make, open your scenario.

  3. Insert the Google Sheets > Update a cell module.

  4. Configure the module:

    1. Choose the newly created spreadsheet in the Spreadsheet field.

    2. Insert your formula containing the Google Sheets function(s) into the Value field.

      Using_functions_3.png

      Note that you can use the output of the preceding modules as usual.

  5. Insert the Google Sheets > Get a cell module to obtain the calculated result.

  6. Configure the module. Fill in the same Cell ID as you filled in step 4.

    Using_functions_4.png