azure - 是否可以使用 msgraph API 通过 mailFolder displayName 搜索 mailFolder

标签 azure microsoft-graph-api graph-api-explorer

我想实现一些功能以允许用户使用 msGraph API 搜索 mailFolder

是否可以通过mailFolderdisplayName使用msgraph API搜索mailFolder 在文档中我没有找到任何关于如何搜索mailFolder的提及。它仅显示如何通过 ID 获取 mailFolder。我们甚至可以搜索 mailFolder 吗?或者邮件文件夹不支持搜索? 感谢您的回答或建议

最佳答案

您可以使用$filter查询参数并搜索与displayName匹配的文件夹

GET https://graph.microsoft.com/v1.0/me/mailFolders?$filter=displayName eq 'name'

或者如果 displayName 以某个值开头

GET https://graph.microsoft.com/v1.0/me/mailFolders?$filter=startswith(displayName,'name')

资源:

Filter parameter

关于azure - 是否可以使用 msgraph API 通过 mailFolder displayName 搜索 mailFolder,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70112442/

相关文章:

azure - 微软图表。异常 SubscriptionCountReached 已达到限制 '1000'

azure - 将数据从 SQL Server 实时流式传输到 Azure 数据仓库

azure - 如何在发布管道中的Azure DevOps中输出terraform输出文件

azure - 使用 microsoft graph 按办公地点获取用户

c# - 客户端和服务之间存在类型不匹配。更新azure存储后出现错误

onedrive - Microsoft Graph API One Drive 无法读取 JSON 请求负载

c# - 如何使用 Microsoft Graph API 获取用户所属的组名?

azure - 为什么我的 Azure Active Directory 身份验证 token 不包含 MS Graph 的权限?