From 64be3e0475565f4ccee8785cafdaf404e9a70256 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 20 Dec 2018 00:46:28 +0000 Subject: [PATCH] --- docs/8.0/ayanova/docs/api-request-format.md | 23 ++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/8.0/ayanova/docs/api-request-format.md b/docs/8.0/ayanova/docs/api-request-format.md index cfe7cb12..41a66d24 100644 --- a/docs/8.0/ayanova/docs/api-request-format.md +++ b/docs/8.0/ayanova/docs/api-request-format.md @@ -77,7 +77,28 @@ The `op` property must be a valid filter operation type. The 10 possible values Note that not all op values are valid for all data types, for example a date doesn't support a Contains type operator. -The `value` property +The optional `value` property is usually a direct comparison type value such as a date or string or numeric value. +However, in the case of filters on Date fields it can be one of several date range tokens that provide a pre-defined range of dates: + +| TOKEN | MEANING | +| ----- | ------------------------------ | +| {[yesterday]} | Include records where `fld` contains a date and time between 12:00 am yesterday morning (zero hour) and 12:00 am today | +| {[today]} | Include records where `fld` contains a date and time between 12:00 am today and 12:00 am tomorrow | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | +| XXX | | + For example the following filter array JSON (in string format) will return only items where the Name starts with "Bob" and the Notes field exactly equals "Aardvark":