en-US/about_AQS.help.txt

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
TOPIC
    about_aqs
 
SHORT DESCRIPTION
    Advanced Query Syntax (AQS) is a language that we can use to filter EWS
    results. This document describes basic functionality offered by it.
 
LONG DESCRIPTION
    Anytime filtering is required in Exchange Web Services (EWS), we can use
    Advanced Query Syntax (AQS). This filtering language is pretty natural and
    in general - easy to use.
    Syntax for a single property search:
 
    property:value
    otherProperty:"Value with spaces"
 
    For some values (like dates or sizes) we can also use compare operators:
 
    size:>=100000
 
    Finally, we can use range operator:
 
    size:700..800
 
    For dates we can use keywords (today, tomorrow, coming year)
    We can also use brackets and logical AND and OR operators:
 
    from:(Adam or Ewa) AND subject:paradise
 
EXAMPLES
    Get-EWSItem -Filter subject:PowerShell
 
    Search for any item with PowerShell in the subject.
 
    Get-EWSItem -Filter isread:false
 
    Search for items that were not read.
 
SEE ALSO
    https://msdn.microsoft.com/en-us/library/office/dn579420(v=exchg.150).aspx
 
KEYWORDS
    - AQS
- Advanced Query Syntax