1
我需要找到具有以特定字符串結尾的proxyAddress的用戶和組,例如, @acme.com
。使用Microsoft Graph API在proxyAddresses上進行篩選,結束於或包含字符串
我可以做startsWith:
$filter=proxyAddresses/any(x:startswith(x,'smtp:johndoe'))
或者等於:
$filter=proxyAddresses/any(x:x eq 'smtp:[email protected]')
不過的endsWith,包含像似乎不工作:
$filter=proxyAddresses/any(x:contains(x,'*@acme.com'))
在
和結果錯誤的請求。
謝謝馬克!你知道有沒有計劃支持endsWith或contains?爲了強大的搜索功能,目前它似乎非常有限 –
我還沒有聽到有關'endsWith'的任何信息,但我知道有很多開發人員對支持'contains'感興趣。然而,這不是微不足道的,所以我不想在ETA上猜測它。 –
Michael,請提出申請,請求UserVoice上的endsWith或contains:https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/category/101632-microsoft-graph-o365-rest-apis –