The function cannot be used

Welcome to the Make community!

You cannot use most JavaScript functions inline within Make.

The list of supported functions can be found in the Make Help Centre, like:

Also, there is no such thing as a tojson function (hence it’s in a “black” background). Where did you learn about this? Instead, you should be using the JSON “Transform to JSON” module —

Transforms any object to JSON.


If you want to use JavaScript, I suggest installing an app that allows you to write and run JavaScript code in a module, like my [App] Sam's Toolbox of Useful Modules: @samliew.


You can also learn more about functions in these Make Academy units:

Transforming data using functions

  • Introduction functions
  • Transforming Data - Text functions
  • Transforming Data - average ()
  • Transforming Data - formatNumber

Intermediate Functions

  • Transforming date and time using functions
  • Conditional functions
  • String and array conversion functions part 1
  • String and array conversion functions part 2

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

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!