Reference

Field types

The seven field types, their JSON values and how they compare.

TypeJSON valueQueriesSortingIndex keyIn plugins and nodes
TextstringAll operators; compared ignoring case; ~= containsBy code point, ignoring caseUpper-cased, up to 512 UTF-8 bytesstring
Integernumber (64-bit integer)= != < <= > >=Numericallylonglong
Decimalnumber= != < <= > >=Numericallydecimaldecimal
Booleantrue / false= and != onlyBy valueboolbool
DateTimeISO 8601 string= != < <= > >=, by instantBy instantUTC ticksDateTimeOffset
ReferenceGUID string= and != onlyBy valueGuidGuid
Jsonany JSON valueNot type-checked—Not indexableJsonNode

Notes

  • A field's type can't change once it's defined.
  • DateTime values without an offset are treated as UTC. The portal shows them in the reader's time zone and saves them as UTC.
  • Reference fields hold the id of another entity. On their own they're just ids; a relationship makes the database check them.
  • Json values aren't type-checked, and can't be grouped by in aggregates.
  • In all types, a missing value sorts last, fails =, <, >, <= and >=, and passes !=. field = null finds entities without a value.

In workflows and web parts

Workflow node inputs and outputs, and web part connections, use the same type names. Workflows add Choice (one of a list of names, from a C# enum). Web part connections treat Integer and Decimal as interchangeable, and a Json consumer accepts any type.