ODATA 쿼리 제목 StartSwith () A-M.
-
10-12-2019 - |
문제
A에서 M까지의 범위의 문자로 제목이 시작되는 목록을 쿼리하려고 시도하고 있으며 사용 가능한 스파 스 문서의 어느 곳에서나 발견 할 수 없습니다.
나는 이것을 시도했지만 유효하지는 않으며 어쨌든 URL에서 허용되는 캐릭터 한도를 끝내는 것이 꽤 확신합니다.
/humanresources/_api/web/lists/GetByTitle('Corporate Directory')/items?$filter=( startswith(Title, 'a') Or startswith(Title, 'b') )&?orderby=Title asc
.
도움이 감사합니다.
미리 감사드립니다!
해결책
Try this:
$filter=title ge 'a' and title lt 'n'
다른 팁
In your example there is a typo in Filter expression:
$filter=( startswith(Title, 'a') Or startswith(Title, 'b') )
The name of logical operator is or
(lowercase letters in name!) , please refer Supported OData Query Options for a more details.
Below is provided a valid query:
/humanresources/_api/web/lists/getbytitle('Corporate Directory')/items?$filter=startswith(Title, 'a') or startswith(Title, 'b')&?orderby=Title asc
제휴하지 않습니다 sharepoint.stackexchange