<< Click to Display Table of Contents >> Navigation: »No topics above this level« Filter |
Extra filters can be passed when fetching data. This can be done at GetBookings, GetAspects and GetRelations.
Tag/field name |
Type |
Remark |
Description |
||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
field |
string |
mandatory |
Field name The field name must be a field name of the type requested. Check the Response structure of the Request. The Internal name of a user field can be used for filtering. |
||||||||||||||||||||||||||
operator |
string |
mandatory |
Operator
|
||||||||||||||||||||||||||
value |
string |
mandatory |
Waarde waarop moet worden gefilterd
|
1) Make sure that the system (library) that generates the soap messages will xml-escape the > (greater than) and < (smaller than) signs correct (i.e. > en <)
For example this filter can be used the fetch new or changed data from a certain date. This can be done by make a filter on the field TIMESTAMP, like this:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <S:Body> <ns2:GetBookings xmlns:ns2="api.timewriter.nl"> <securityToken></securityToken> <startDate>2021-04-01</startDate> <endDate>2021-05-01</endDate> <filters> <filter> <field>TIMESTAMP</field> <operator>></operator> <value>2021-04-15 11:11:00.000</value> </filter> </filters> </ns2:GetBookings> </S:Body> </S:Envelope>
|