IMPORTANT!
A new version of the queues or trays is available.
See how to configure date filters in the new queues.
Athento gives us the possibility to list documents in queues according to date-type criteria.
There are two available date-type filters:
- Document creation or validation date
- Date-type fields
Date filters
When to use Calendar and when to use Expression?
- Calendar: You want to filter by a specific calendar date. Example: April 2, 2021.
- Expression: It should be used when the reference date for the filter must be calculated dynamically, for example, 30 days ago.
Available operators to compare dates
- <: earlier than
- ==: equal to
- >: later than
Available expressions
Reference dates
- Today: today
- Yesterday: yesterday
You can also indicate a specific number of days. In this case, you must also indicate what that number means:
- Days ago: X days ago
- Years ago: X years ago
- Days forward: in X days
- Years forward: in X years
Filters by date-type fields
When to use the filter criteria Calendar or Field value?
- Field value/ field value: to filter by documents where the date-type field has a value (Is not empty / is not empty) or does not have one (Is empty / is empty).
- Calendar: you want to filter by a fixed or dynamic date.
Available operators to compare dates
- <: earlier than
- ==: equal to
- >: later than
Available expressions
Reference dates
- Today: today
- Yesterday: yesterday
You can also indicate a specific number of days. In this case, you must also indicate what that number means:
- Days ago: X days ago
- Years ago: X years ago
- Days forward: in X days
- Years forward: in X years
Examples of date filters
Below, in this article, we provide several examples of date filters.
Filter in a queue the documents created in the last month
In that case, we use the creation date filter. Instead of indicating a specific date (Calendar option), we use an expression. The expression would be:
Creation date > 30 Days Ago
This means that the queue will show all documents in which the creation date is more recent than the date that corresponds to 30 days ago.
Filter in a queue the documents validated in the last week
In that case, we use the validation date filter. Instead of indicating a specific date (Calendar option), we use an expression. The expression would be:
Validation date > 6 Days Ago
This means that the queue will show all documents validated in the previous 6 days including today.
Filter in a queue the documents for which a certain date has been exceeded
In this case, we use date-type fields. For the example, we will use the End Date field.
The filter we must use is:
End date < Today
This means that the queue will list those documents in which the value of the End date field is earlier than today’s date.