Skip to content

Comparators

Depending on the columns data type different comparators can be used with the ColumnFilter attribute in the request. Each response from a GET request contains a property called columns that specifies each columns data type.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <GetItemsResponse requestedPage="4" page="4" pageSize="100" totalNumberOfPages="10" totalNumberOfItems="1000" xmlns="http://www.easit.com/bps/schemas">
      <Columns>
        <Column datatype="INTEGER" collection="false">Id</Column>
        <Column datatype="DATETIME" collection="false">Created</Column>
        <Column datatype="CONNECTION" collection="false" connectiontype="PROPERTY">Status</Column>
      </Columns>
      <Items>
        <Item id="138:2">
          <Property name="Id" rawValue="201">201</Property>
          <Property name="Created" rawValue="2020-03-16T14:30:08.000Z">2020-03-16 15:30</Property>
          <Property name="Status" rawValue="74:1">Open</Property>
        </Item>
      </Items>
    </GetItemsResponse>
  </soapenv:Body>
</soapenv:Envelope>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  "columns":{
    "column": [
      {
        "content": "Id",
        "datatype": "INTEGER",
        "collection": false,
        "connectiontype": null
      },
      {
        "content": "Created",
        "datatype": "DATETIME",
        "collection": false,
        "connectiontype": null
      },
      {
        "content": "Status",
        "datatype": "CONNECTION",
        "collection": false,
        "connectiontype": "PROPERTY"
      }
    ]
  },
  "items": {
    "item":[
      {
        "property": [
          {
            "content": "201",
            "name": "Id",
            "rawValue": "201"
          },
          {
            "content": "2020-03-16 15:30",
            "name": "Created",
            "rawValue": "2020-03-16T14:30:08.000Z"
          },
          {
            "content": "Open",
            "name": "Status",
            "rawValue": "74:1"
          }
        ],
        "attachment": [],
        "id": "138:2"
      }
    ]
  },
  "requestedPage": 4,
  "page": 4,
  "pageSize" : 100,
  "totalNumberOfPages": 10,
  "totalNumberOfItems": 1000,
}

Comparator matrix

Here you can see what comparator you can use with each data type.

Comparator Data type
EQUALS STRING, TEXT, INTEGER, DECIMAL, FLOAT, BOOLEAN
NOT_EQUALS STRING, TEXT, INTEGER, DECIMAL, FLOAT, BOOLEAN
LIKE STRING, TEXT
NOT_LIKE STRING, TEXT
IN CONNECTION
NOT_IN CONNECTION
GREATER_THAN INTEGER, DECIMAL, FLOAT, DATE, DATETIME
GREATER_THAN_OR_EQUALS INTEGER, DECIMAL, FLOAT, DATE, DATETIME
LESS_THAN INTEGER, DECIMAL, FLOAT, DATE, DATETIME
LESS_THAN_OR_EQUALS INTEGER, DECIMAL, FLOAT, DATE, DATETIME