Vom SharePoint REST-Dienst unterstützte OData-Abfrageoperatoren
Unterstützt | Nicht unterstützt |
---|---|
Numerische Vergleiche Der HTML-Code für ein Leerzeichen ist folgender: ... Lt Le Gt Ge Eq Ne | Arithmetische Operatoren (Add, Sub, Mul, Div, Mod) Grundlegende mathematische Funktionen (Runden, Untergrenze, Obergrenze) |
String-Vergleiche startsWith substringof Eq Ne | endsWith replace substring tolower toupper trim concatDie Concat-Funktion verkettet das Ergebnis einer Formel... |
Datums- und Uhrzeitfunktionen day() month() year() hour() minute() second() | Operator „DateTimeRangesOverlap“ Abfrage, ob Datum-Zeit in ein wiederkehrendes Datum-Zeit-Muster fällt |
Die folgende Abbildung zeigt unterstützte OData-Abfrageoptionen.

Zum Sortieren kann ascDas Kürzel dient zum Sortieren von Datenwerten: ASC = aufs... und descDas Kürzel dient zum Sortieren von Datenwerten: DESC = abs... verwendet werden!
Hilfreiche Links zu diesem Thema:
Weitere Beispiele:
Select a range of values | Copyfilter=Entry_No gt 610 and Entry_No lt 615 Query on GLEntry service. Returns entry numbers 611 through 614. | .. |
And | Copyfilter=Country_Region_Code eq 'ES' and Payment_Terms_Code eq '14 DAYS' Query on Customer service. Returns customers in Spain where Payment_Terms_Code=14 DAYS. | & |
Or | Copyfilter= Country_Region_Code eq 'ES' or Country_Region_Code eq 'US' Query on Customer service. Returns customers in Spain and the United States.![]() | | |
Less than | Copyfilter=Entry_No lt 610 Query on GLEntry service. Returns entry numbers that are less than 610. | < |
Greater than | Copyfilter= Entry_No gt 610 Query on GLEntry service. Returns entry numbers 611 and higher. | > |
Greater than or equal to | Copyfilter=Entry_No ge 610 Query on GLEntry service. Returns entry numbers 610 and higher. | >= |
Less than or equal to | Copyfilter=Entry_No le 610 Query on GLEntry service. Returns entry numbers up to and including 610. | <= |
Different from (not equal) | Copyfilter=VAT_Bus_Posting_Group ne 'EXPORT' Query on Customer service. Returns all customers with VAT_Bus_Posting_Group not equal to EXPORT. | <> |
endswith | Copyfilter=endswith(VAT_Bus_Posting_Group,'RT') Query on Customer service. Returns all customers with VAT_Bus_Posting_Group values that end in RT. | * |
startswith | Copyfilter=startswith(Name, 'S') Query on Customer service. Returns all customers names beginning with “S”. | |
substringof | Copyfilter=substringof(Name, ‘urn’) Query on Customer service. Returns customer records for customers with names containing the stringEin String ist ein Datentyp, welcher eine Zeichenkette beinh... “urn”. | |
length | Copyfilter=length(Name) gt 20 Query on Customer service. Returns customer records for customers with names longer than 20 characters. | |
indexof | Copyfilter=indexof(Location_Code, ‘BLUE’) eq 0 Query on Customer service. Returns customer records for customers having a location code beginning with the stringEin String ist ein Datentyp, welcher eine Zeichenkette beinh... BLUE. | |
replace | Copyfilter=replace(City, 'Miami', 'Tampa') eq 'CODERED' | |
substring | Copyfilter=substring(Location_Code, 5) eq 'RED' Query on Customer service. Returns true for customers with the string RED in their location code starting as position 5. | |
tolower | Copyfilter=tolower(Location_Code) eq 'code red' | |
toupper | Copyfilter=toupper(FText) eq '2ND ROW' | |
trim | Copyfilter=trim(FCode) eq 'CODE RED' | |
concat | Copyfilter=concat(concat(FText, ', '), FCode) eq '2nd row, CODE RED' | |
day | Copyfilter=day(FDateTime) eq 12 | |
month | Copyfilter=month(FDateTime) eq 12 | |
year | Copyfilter=year(FDateTime) eq 2010 | |
hour | Copyfilter=hour(FDateTime) eq 1 | |
minute | Copyfilter=minute(FDateTime) eq 32 | |
second | Copyfilter=second(FDateTime) eq 0 | |
round | Copyfilter=round(FDecimal) eq 1 | |
floor | Copyfilter=floor(FDecimal) eq 0 | |
ceiling | Copyfilter=ceiling(FDecimal) eq 1 |