Teamhub Language Reference

Teamhub Language Reference

Documentation

The Teamhub language allows complex logic and calculations to be performed. It may be used in Formula fields. Where you are able to calculate and compare values as well as format and display them

The language makes use of matching opening and closing parentheses for example to add 2 numbers (Add 1, 2) 'Add' is the function to add 2 numbers together. Commas may be added between elements for clarity but can be ommitted if prefered e.g. (Add 1, 2) is the same as (Add 1 2)

To refer to fields use the syntax {FIELD-NAME-OR-ID} i.e. an open brace '{' followed by the name of the field and then the closing brace '}' e.g. {Priority}

Need help? Use the chat in the bottom right to get in touch and we'll give you a hand! 👋👋👋
Data Types
Type Value Description
Nil nil Represents an empty (null) or non-existent value.
String "The Great Gatsby" Textual data enclosed in double quotes.
Number 786, 42.5 Integer or decimal values.
Array [1, 2, 3, 4], ["a", "b", "c"] A collection of items of the same kind
Boolean true, false Logical true or false.
Date Date(...) A specific calendar date.
Time Time(...) A specific time.
DateTime DateTime(...) A specific date and time instance.
Duration Duration(...) Represents a span of time (e.g., 2 hours).
UUID 60aa290e-6738-460f-bf17-aba840d1104f A UUID identifier e.g. a task or user id, 36 characters long with dashes and 32 without.
Examples