Functions library
Find documented Ninox functions fast in one A–Z reference. Use this page for quick lookup.
Use Work with functions to explore functions by category.
Jump to: A · C · D · E · F · G · H · I · J · L · M · N · O · P · Q · R · S · T · U · W · Y
A
abs()
Return the absolute value of a number.
abs(number)
numberthe value to convert
acos()
Return the arccosine of a value between -1 and 1.
acos(number)
numberthe cosine value
age()
Return the number of full years since a date.
age(date)
datethe reference date
alert()
Show a simple message with an OK button.
alert(any)
anythe message or value to show
appointment()
Create an appointment from start and end, or from start and duration.
appointment(any, any)
anyfirst argument: start or end valueanysecond argument: end value or duration
array()
Merge two arrays into one array.
array([any], [any])
[any]first array[any]second array
asin()
Return the arcsine of a value between -1 and 1.
asin(number)
numberthe sine value
atan()
Return the arctangent of a number.
atan(number)
numberthe value or quotient
atan2()
Return the arctangent of one value divided by another.
atan2(number, number)
numberfirst argument: numeratornumbersecond argument: denominator
avg()
Return the average of numeric values.
avg([number])
[number]an array or numeric field list
C
capitalize()
Capitalize the first letter of each word.
capitalize(string)
stringthe text to convert
ceil()
Round a number up to the next integer.
ceil(number)
numberthe value to round
chosen()
Return selected values from a multiple choice field, or check whether a value is selected.
chosen(multi), chosen(multi, string), chosen(multi, number), chosen(multi, [number])
multia multiple choice fieldstringa label to checknumberan option ID[number]several option IDs
clientLang()
Return the current client language code.
clientLang()
cnt()
Count non-empty items in a list or selection. This is the short form of count.
cnt([any])
[any]the list or selection to count
color()
Return a color value.
color(name), color(r, g, b), color(r, g, b, a), color(choice)
namea color name or hex coder, g, bRGB valuesaopacitychoicea choice field with colors
concat()
Return one comma-separated text string.
concat([any]) or concat(value1, value2, ...)
[any]an array, selection, or multiple choice fieldvalue1, value2, ...values to combine
contains()
Check whether text or a list contains an exact value.
contains(string, string) or contains([any], any)
stringthe text to search; second argument the value to find[any]the array to search; second argument the array to find
cos()
Return the cosine of an angle in radians.
cos(number)
numberthe angle in radians
count()
Count non-empty items in a list or selection.
count([any])
[any]the list or selection to count
D
date()
Create a date, or strip the time part from a time-based value.
date(any) or date(year, month, day)
anya date, datetime, or Unix millisecondsyear,month,daythe date parts
datetime()
Create a local timestamp.
datetime(milliseconds), datetime(year, month, day[, hour[, minute[, second[, millisecond]]]]), or datetime(date, time)
millisecondsUnix time in millisecondsdate and time parts the local timestamp values
date,timeseparate date and time values
day()
Return the day of the month.
day(date), day(timestamp), day(appointment)
datea date valuetimestampa timestamp or datetime valueappointmentan appointment value; Ninox uses the start date
days()
Return the number of calendar days between two dates.
days(date, date)
first argument start date; second argument end date
degrees()
Convert radians to degrees.
degrees(number)
numberthe angle in radians
dialog()
Show a dialog and return the selected answer.
dialog(string, string, [string])
first argument title
second argument message
third argument answer options
duplicate()
Create a copy of a record.
duplicate(record)
recordthe record to copy
duration()
Return a time span from an appointment or between two values.
duration(appointment) or duration(end, start)
appointmentthe appointment to measureend,startthe later and earlier values
E
email()
Return an email value from another value.
email(any)
anythe value to convert
endof()
Return the end of an appointment or a calendar period.
endof(appointment) or endof(date, period)
appointmentthe appointment valuedatethe reference dateperioda period such as"month"or"week"
even()
Check whether a number is even.
even(number)
numberthe value to test
exp()
Return e raised to a power.
exp(number)
numberthe exponent
extractx()
Extract the first regex match from text.
extractx(string, string), extractx(string, string, string), extractx(string, string, string, string)
first argument the source text
second argument the regex pattern
third argument optional flags
fourth argument optional capture expression such as
$1
F
fieldId()
Return the internal ID of a field.
fieldId(field), fieldId(record, string), fieldId(string, string)
fieldthe field itselfrecorda record from the tablestringfield name, or table name and field name
file()
Return one file reference.
file(any) or file(nid, string)
anya file field or supported file sourcenidthe record with the attachmentstringthe exact filename
files()
Return several file references as an array.
files(any) or files(nid)
anya file field or supported file sourcenidthe record with the attachments
first()
Return the first item from a list or selection.
first([any])
[any]the list or selection
floor()
Round a number down to the next integer.
floor(number)
numberthe value to round
format()
Convert numbers, dates, times, and appointments to text with a format pattern.
format(number, pattern), format(date, pattern[, language]), format(time, pattern), format(timestamp, pattern[, language]), format(appointment, pattern[, language])
first argument the value to format
patternthe format expressionlanguageoptional language code
formatJSON()
Convert a JSON object to a JSON string.
formatJSON(JSON)
JSONthe object to convert
formatXML()
Convert a JSON object to XML text.
formatXML(JSON) or formatXML(JSON, boolean)
JSONthe object to convertbooleanwhether to pretty-print the output
G
get()
Read a field by name, or read a stored key-value entry.
get(record, string) or get(string)
recordthe record to read fromstringthe field name, field ID, or storage key
H
html()
Return a rich text value with HTML rendering.
html(any)
anythe value or HTML string to render
http()
Send an HTTP request.
http(string, string), http(string, string, JSON), http(string, string, JSON, any), http(string, string, JSON, [file]), http(string, string, JSON, any, [file])
first argument HTTP method such as
"GET"or"POST"second argument target URL
JSONoptional headersanyoptional body[file]optional uploaded files
I
icon()
Return an icon value.
icon(choice) or icon(string)
choicea choice field with an iconstringthe icon name
index()
Return the position of the first match in text or an array.
index(text, search) or index([any], any)
first argument the text or array to search
second argument the value to find
isAdminMode()
Check whether the client UI is in admin mode.
isAdminMode()
isDatabaseLocked()
Check whether edit mode is currently locked.
isDatabaseLocked()
isDatabaseProtected()
Check whether edit mode requires a password.
isDatabaseProtected()
item()
Return one item from a list or one value from a JSON object.
item([any], number), item(JSON, number), item(JSON, string)
[any]the list or selectionnumberzero-based position or numeric JSON keystringJSON key
J
join()
Combine text values into one string with a custom separator.
join([string], string)
[string]the list of text valuesstringthe separator
L
last()
Return the last item from a list or selection.
last([any])
[any]the list or selection
length()
Count characters in text or items in a list.
length(string) or length([any])
stringthe text to count[any]the array to count
ln()
Return the natural logarithm of a number.
ln(number)
numberthe input value
location()
Create a location value from a title and coordinates.
location(string, number, number)
stringthe location titlesecond argument latitude
third argument longitude
log()
Return a logarithm with base 10 or another base.
log(number) or log(number, number)
first argument the input value
second argument optional base
lower()
Convert text to lowercase.
lower(string)
stringthe text to convert
lpad()
Pad text on the left to a fixed length.
lpad(string, length, padding)
stringthe source textlengththe target lengthpaddingthe padding characters
M
max()
Return the highest number or latest date-like value.
max([any])
[any]the comparable values
min()
Return the lowest number or earliest date-like value.
min([any])
[any]the comparable values
month()
Return the month number from 1 to 12.
month(date), month(timestamp), month(appointment)
datea date valuetimestampa timestamp or datetime valueappointmentan appointment value; Ninox uses the start date
N
ninoxApp()
Return the current app or client context.
ninoxApp()
now()
Return the current date and time.
now()
number()
Convert a value to a number.
number(any)
anythe value to convert
numbers()
Return selected IDs from a multiple choice field.
numbers(multi) or numbers(dmulti)
multia multiple choice fielddmultia dynamic multiple choice field
O
odd()
Check whether a number is odd.
odd(number)
numberthe value to test
P
parseCSV()
Convert CSV text into rows and columns.
parseCSV(string, options)
stringthe CSV textoptionsoptional settings such asfirstLineIsHeader,separator, andtextQuote
parseJSON()
Convert a JSON string to a JSON object.
parseJSON(string)
stringthe JSON text
parseXML()
Convert an XML string to a JSON object.
parseXML(string)
stringthe XML text
pow()
Raise a number to a power.
pow(base, exponent)
basethe starting numberexponentthe power to apply
Q
quarter()
Return the quarter number from 1 to 4.
quarter(date)
datea date value, or a timestamp or datetime value
R
radians()
Convert degrees to radians.
radians(number)
numberthe angle in degrees
random()
Return a random number between 0 and 1.
random()
range()
Build an array of consecutive numbers.
range(to), range(from, to), range(from, to, step)
fromoptional start valuetostop valuestepoptional increment
raw()
Return the internal raw text representation of a value.
raw(any)
anythe value to inspect
record()
Return a record reference from a table and numeric record ID.
record(table, id)
tablethe table that contains the recordidthe numeric record ID
removeItem()
Remove one key-value pair from a JSON object.
removeItem(JSON, string)
JSONthe object to changestringthe key to remove
replace()
Replace each exact match of one string with another.
replace(text, search, replacement)
textthe source textsearchthe text to findreplacementthe text to insert
replacex()
Replace text with a regular expression.
replacex(text, pattern, replacement) or replacex(text, pattern, flags, replacement)
textthe source textpatternthe regex patternflagsoptional regex flagsreplacementthe replacement text
round()
Round a number to an integer or decimal place.
round(number) or round(number, digits)
numberthe value to rounddigitsoptional number of decimal places
rpad()
Pad text on the right to a fixed length.
rpad(string, length, padding)
stringthe source textlengththe target lengthpaddingthe padding characters
rsort()
Sort values in descending order.
rsort([any]), rsort(any, any, ...), rsort([any], [any], ...)
arguments values or arrays of the same type
S
set()
Update a field by name or field ID.
set(record, string, any)
recordthe record to updatestringthe field name or field IDanythe new value
setItem()
Add or update one key-value pair in a JSON object.
setItem(JSON, string, any)
JSONthe object to changestringthe key to updateanythe new value
sign()
Return whether a number is negative or non-negative.
sign(number)
numberthe value to check
sin()
Return the sine of an angle.
sin(number)
numberthe angle value
sleep()
Pause a script for a number of milliseconds.
sleep(number)
numberthe delay in milliseconds
slice()
Return part of a list or part of a string.
slice([any], from, to) or slice(string, from, to)
first argument the list or text to slice
frominclusive start positiontoexclusive end position
sort()
Sort values in ascending order.
sort([any]), sort(any, any, ...), sort([any], [any], ...)
arguments values or arrays of the same type
split()
Split text into parts at each exact separator.
split(text, separator)
textthe source textseparatorthe split marker
splitx()
Split text into parts with a regex pattern.
splitx(text, pattern)
textthe source textpatternthe regex split pattern
sqr()
Square a number.
sqr(number)
numberthe value to square
sqrt()
Return the square root of a number.
sqrt(number)
numberthe input value
start()
Return the start timestamp of an appointment.
start(appointment)
appointmentthe appointment value
string()
Convert a value to its raw string form.
string(value)
valuethe value to convert
styled()
Return styled text with optional colors and an icon.
styled(text, background), styled(text, background, icon), styled(text, background, fontColor, icon), styled(text, JSON)
textthe text to showbackgroundbackground colorfontColortext coloriconicon nameJSONstyle definition
substr()
Return part of a string from a start position.
substr(text, start) or substr(text, start, length)
textthe source textstartzero-based start positionlengthoptional number of characters
substring()
Return part of a string between two positions.
substring(text, start, end)
textthe source textstartzero-based start positionendexclusive end position
sum()
Add numeric values together.
sum([number])
[number]an array or numeric field list
T
tableId()
Return the internal ID of a table.
tableId(table), tableId(record), tableId(string)
tablethe table itselfrecorda record from the tablestringthe table name
tan()
Return the tangent of an angle.
tan(number)
numberthe angle value
testx()
Check whether text matches a regular expression.
testx(string, string) or testx(string, string, string)
first argument the source text
second argument the regex pattern
third argument optional flags
text()
Convert a value to readable text.
text(value)
valuethe value to convert
time()
Return the current time, extract a time, or create a time value.
time(), time(any), time(hour, minute), time(hour, minute, second), time(hour, minute, second, millisecond)
anya time-based value or Unix millisecondstime parts hour, minute, second, and millisecond
timeinterval()
Create a duration offset.
timeinterval(any) or timeinterval(number, unit)
anya time-related value or millisecondsnumberthe amountunita unit such as"hours"or"days"
timestamp()
Convert a time-related value to a UTC-based timestamp.
timestamp(any)
anya date-like value or Unix milliseconds
today()
Return the current date without a time part.
today()
trim()
Remove spaces at the start and end of a string.
trim(string)
stringthe text to clean
U
unique()
Remove duplicate values from one or more arrays.
unique([any]) or unique([any], [any], ...)
[any]the arrays to combine and deduplicate
upper()
Convert text to uppercase.
upper(string)
stringthe text to convert
url()
Return a link value from text or query data.
url(any) or url(any, JSON)
anythe source valueJSONoptional query parameters
urlDecode()
Decode URL-encoded text.
urlDecode(string)
stringthe encoded text
urlEncode()
Encode text for safe use in a URL.
urlEncode(string)
stringthe text to encode
user()
Return the current user, or look up a workspace user by name.
user() or user(string)
stringthe user name to look up
userEmail()
Return the current user’s email, or another user’s email.
userEmail() or userEmail(user)
useroptional user value
userFirstName()
Return the first name of the current or given user.
userFirstName() or userFirstName(user)
useroptional user value
userFullName()
Return the full name of the current or given user.
userFullName() or userFullName(user)
useroptional user value
userHasRole()
Check whether a user has a role.
userHasRole(string) or userHasRole(user, string)
stringthe role nameuseroptional user value to check
userId()
Return the internal ID of the current or given user.
userId() or userId(user)
useroptional user value
userIsAdmin()
Check whether the current user is an admin.
userIsAdmin()
none
userLastName()
Return the last name of the current or given user.
userLastName() or userLastName(user)
useroptional user value
userName()
Return the display name of the current or given user.
userName() or userName(user)
useroptional user value
userRole()
Return the primary role of the current or given user.
userRole() or userRole(user)
useroptional user value
userRoles()
Return all roles of the current or given user.
userRoles() or userRoles(user)
useroptional user value
users()
Return all collaborators in the current workspace.
users()
W
week()
Return the calendar week number.
week(date), week(timestamp), week(appointment)
datea date valuetimestampa timestamp or datetime valueappointmentan appointment value; Ninox uses the start date
weekday()
Return the weekday number from 0 to 6.
weekday(date), weekday(timestamp), weekday(appointment)
datea date valuetimestampa timestamp or datetime valueappointmentan appointment value; Ninox uses the start date
workdays()
Return the number of business days between two dates.
workdays(start, end)
startstart dateendend date
Y
year()
Return the year number.
year(date), year(timestamp), year(appointment)
datea date valuetimestampa timestamp or datetime valueappointmentan appointment value; Ninox uses the start date
yearmonth()
Return year-month like 2026/03.
yearmonth(date), yearmonth(timestamp), yearmonth(appointment)
datea date valuetimestampa timestamp or datetime valueappointmentan appointment value; Ninox uses the start date for theYYYY/MMlabel
yearquarter()
Return year-quarter like 2026 Q1.
yearquarter(date), yearquarter(timestamp), yearquarter(datetime), yearquarter(appointment)
datea date valuetimestampa UTC-based timestamp valuedatetimea local datetime valueappointmentan appointment value; Ninox uses the start date for theYYYY Qnlabel
yearweek()
Return year-week like 2026 12.
yearweek(date), yearweek(timestamp), yearweek(appointment)
datea date valuetimestampa timestamp or datetime valueappointmentan appointment value; Ninox uses the start date for theYYYY WWlabel
Last updated
Was this helpful?