This reference provides you with an overview of the available template functions and variables in i-doit. The examples can be used primarily in the Flow actions "API call" and "Send email".
{# Location information of the current object #}Object: {{object.C__CATG__GLOBAL.title}}{# The 'parent' value contains the ID of the parent location #}{%ifobject.C__CATG__LOCATION.parent|id%}{# With object(ID) we load the parent object #}{%setparent=object(object.C__CATG__LOCATION.parent|id)%}Parent location: {{parent.C__CATG__GLOBAL.title}}{%else%}No parent location defined{%endif%}
{# Load a specific object #}{%setother_object=object(123)%}{{other_object.C__CATG__GLOBAL.title}}{# Load linked object from attribute #}{%ifentry.parent|id%}{%setparent=object(entry.parent|id)%}{{parent.C__CATG__GLOBAL.title}}{%endif%}
{# Check if category exists #}{%ifobject.C__CATG__IPisdefined%}{# Check if attribute exists #}{%forentryinobject.C__CATG__IP%}{%ifentry.primary_hostaddressisdefined%}{{entry.primary_hostaddress}}{%endif%}{%endfor%}{%endif%}{# Alternative with default filter #}{{object.C__CATG__CPU.title|default('No title')}}
{# Only primary contacts #}{%forentryinobject.C__CATG__CONTACT%}{%ifentry.primary=='Yes'%}{{entry.role}} (Primary contact){%endif%}{%endfor%}{# With default value when empty #}{{entry.description|default('No description')}}
{# Format text #}{%settext="text"%}{# Uppercase #}{{text|upper}}{# Lowercase #}{{text|lower}}{# Capitalize first letter #}{{text|capitalize}}{# Remove whitespace #}{{text|trim}}{# Edit arrays/lists #}{%setlist=['Server 1','Server 2','Server 3','Server 4','Server 5']%}{# Array to string #}Server list: {{list|join(', ')}}{# First element #}First server: {{list|first}}{# Last element #}Last server: {{list|last}}{# Number of elements #}Number of servers: {{list|length}}{# Subset (start, length) #}First three servers: {{list|slice(0,3)|join(', ')}}{# Format numbers #}{%setnumber="1234.56"%}{# 1234.56 -> 1,234.56 #}{{number|number_format(2,'.',',')}}{# Absolute value #}{{number|abs}}{# Round #}{{number|round}}
{# Format current date/time #}{# 06.11.2025 #}{{date|date('d.m.Y')}}{# 06. November 2025 #}{{date|date('d. F Y')}}{# 14:30 #}{{time|date('H:i')}}{# Format date attributes #}{%setcreation=object.C__CATG__GLOBAL.created%}Original: {{object.C__CATG__GLOBAL.created}}Formatted: {{creation|date('d.m.Y H:i')}}{# Relative time references #}{{creation|date_modify('+1 month')|date('d.m.Y')}}
{# Multiple conditions #}{%ifstatus=='active'and(type=='server'ortype=='client')%}{# ... #}{%endif%}{# Switch/Case alternative #}{%setstatus=object.C__CATG__GLOBAL.status%}{%setstatusText={'2':'Normal','3':'Archived','4':'Deleted'}[status]|default('Unknown')%}{# Ternary operator #}{{value?'Yes':'No'}}{{value?:'Default value'}}{# Short form when value is falsy #}