Microsoft Graph API用于电子邮件附件可以按大小按滤镜

发布于 2025-02-02 04:50:40 字数 824 浏览 3 评论 0 原文

我正在使用此处记录的API https://learn.microsoft.com/en-us/graph/api/message-list-athachments?view=graph=graph-Rest-rest-1.0&Amp,AMP = http

我还可以使用几个 https://learn.microsoft.com/en-corrosoft.com/en-en-us en /graph/query-parameters ,包括$ select,哪个工作正常和$ filter,

我不想按大小过滤附件,例如

... url ...?$ select = field1,field2,field3& $ filter = size ge 1000

但似乎被忽略了;我在Graph Explorer中对此进行了测试;我知道您不能在URL中有空格,而是使用了%20,上面使用的空间为了清楚起见,

我尝试了一个或两个其他过滤参数,这是可以的;我想念简单的东西吗?

I'm using the API documented here https://learn.microsoft.com/en-us/graph/api/message-list-attachments?view=graph-rest-1.0&tabs=http

I'm also using a couple of https://learn.microsoft.com/en-us/graph/query-parameters, including $select, which works fine and $filter, which does not

I'm looking to filter Attachments by size, like this

...URL...?$select=field1,field2,field3&$filter=size ge 1000

But it seems to be ignored; I was testing this in Graph Explorer; I'm aware you can't have spaces in a URL, I used %20 instead, spaces used above for clarity

I tried one or two other filter parameters, which were OK; am I missing something simple?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

澜川若宁 2025-02-09 04:50:40

已知问题是附件端点不支持过滤器。

$ filter 参数被忽略。

解决方法是按照客户端上的大小过滤附件。

资源:

已知的问题

It's known issue that attachments endpoint does not support filters.

The $filter parameter is ignored.

Workaround is to filter attachments by size on the client.

Resources:

Known issues

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文