Integromat Data Types are derived from normal JSON data types, with some limitations and additions.
A string is a statically specified piece of text, like "hello, world"
.
A Number is a sequence of digits, like 8452
or -123
.
A Boolean is a binary type which has 2 values: true
or false
.
null
is a special type, that represents absence of a value.
A Flat Object is a collection of key-value pairs, where key is a String, and value can be any Primitive Type. Example:
{
"id": 1,
"firstName": "James",
"lastName": "McManson",
}
A Flat Object cannot contain nested collections and arrays.
An Object is a collection of key-value pairs, where key is a String, and value can be any Primitive or Complex type. Example:
{
"data": [{
"id": 1,
"url": "http://example.com"
}, {
"id": 2,
"url": "http://foobar.org"
}],
"additional_data": {
"total": 2,
"next_page": false,
"info": null
}
}
An Array is a collection of Primitive and Complex types.
IML types are special Strings or Complex Types that can contain IML expressions. An IML expression is a template expression that can resolve into a value.
An IML String is a String that can contain IML expressions in
between {{
and }}
tags. Anything between these tags is considered an
expression. IML Strings are also known as Template Strings. IML String
is an extension to String and, as such, can contain any value that a
normal String can contain. It does not have to be just an IML
expression.
Examples:
A String of a single IML expression: "{{body.data.firstName + ' ' +
body.data.lastName}}"
A String without an IML expression: "Hello, World"
A String with text and IML expression: "Hello, {{body.data.name}}"
An IML Flat Object is a Flat Object that can additionally contain IML Strings as values. Example:
{
"page": "{{temp.page}}",
"limit": 1,
"type": "{{parameters.type}}"
}
An IML Object is an Object that can additionally contain IML Strings and IML Arrays as values. Example:
{
"data": [{
"id": "{{body.id}}",
"name": "{{body.name}}"
}, "{{parameters.type}}"],
"info": {
"pageNumber": 1
}
}
An IML Array is an Array that can contain IML Strings and IML Objects as values. Example:
[
{
"id": "{{body.id}}",
"name": "{{body.name}}",
"data": {
"foo": "{{temp.bar}}"
}
},
"{{parameters.type}}",
1,
true,
null
]