Functions are used within the Duzzit Editor to easily access, change, and format data. There are a variety of different types of functions:
- Text Functions – manipulate and format text values
- Date Functions – get, change, and format date values
- XML Functions – load text into XML so that it can be accessed within the Duzzit Editor
- Math Functions – perform basic math functions such as add, subtract, mulitply, and divide
- Geo Functions – decode geo information from text data
On this page:
Function Syntax
The itDuzzit function syntax is similar to that of many programming languages:
functionname(parameter1, parameter2)
The number of parameters is specific to each function. A parameter can be an input or output variable, another function, a text literal, a numeric literal, or the words true or false.
To pass an input or output variable to a function, use the syntax $(variablename). String literals must be enclosed within double quotes.
Here are some examples.
Example 1 – function with no parameters
date.now()
Example 2 – function with parameters
date.format($(Created Date), "yyyy-MM-dd")
Where $(Created Date) represents an input or output variable named “Created Date”.
Example 3 – function with a parameter that is another function
date.format(date.addDays($(Created Date), -7), "yyyy-MM-dd")
In this example, we get the date for one week before the “Created Date” variable and format it in “yyyy-MM-dd” format.
Using Functions
Functions can be used when setting a value in the Duzzit Editor or it can be used with a merge variable using the bracket “[[ ]]” syntax. For example, when building a string that is URL, each URL must be URL encoded. Do do this we use the “text.url” function.
http://awebsite.com/api?input1=[[text.url($(input1))]]
Here’s an example using functions in the Duzzit Editor

Function Reference
Visit the itDuzzit Function Reference page for details about each function.

