Generic properties
You can query entities by generic properties of known datatypes.
To do this, use the following construct:
String
For instance, to query all entities with a certain Title:
You can also search for an empty string:
This can be used for multi-language queries as well:
Property values initially have a null value. It is only when a value is added and then removed that it becomes an empty string.
Integer
For instance, to query all entities with a certain IntProperty:
Long
For instance, to query all entities with a certain LongProperty:
Decimal
For instance, to query all entities with a certain DecimalProperty:
Float
For instance, to query all entities with a certain FloatProperty:
DateTime
For instance, to query all entities created after a certain date:
The DateTime representation follows the international standard ISO8601 covering the exchange of date and time-related data.
There are two formats available via the REST API itself: YYYYMMDD and YYYYMMDDTHHMMSS.
The following formats are available via the Querying API:
Basic formats
-
yyyyMMdd
-
yyyyMMddTHHmmsszzz
-
yyyyMMddTHHmmsszz
-
yyyyMMddTHHmmssZ
-
yyyyMMddTHHmmss
-
yyyy-MM-ddTHHmmss
Extended formats
-
yyyy-MM-ddTHH:mm:sszzz
-
yyyy-MM-ddTHH:mm:sszz
-
yyyy-MM-ddTHH:mm:ssZ
All of the above with reduced accuracy
-
yyyyMMddTHHmmzzz
-
yyyyMMddTHHmmzz
-
yyyyMMddTHHmmZ
-
yyyy-MM-ddTHH:mmzzz
-
yyyy-MM-ddTHH:mmzz
-
yyyy-MM-ddTHH:mmZ
Accuracy reduced to hours
-
yyyyMMddTHHzzz
-
yyyyMMddTHHzz
-
yyyyMMddTHHZ
-
yyyy-MM-ddTHHzzz
-
yyyy-MM-ddTHHzz
-
yyyy-MM-ddTHHZ
Boolean
Booleans do not support any operators, but can be negated.
For instance, to query all draft entities:
Multilanguage properties
To use multilanguage properties when querying entities, specify the culture to filter on.
For instance, to fetch all the M.Brand entities with the fruitful Brandlabel, in en-US: