I'm using Outlook Mail REST API to fetch messages, using get-messages API call.
I want to get the attachments together with message result, so I added $expand=Attachments
to the call and it worked.
I don't need the ContentBytes
fields in the attachment. So I'd like to find a way to tell MS servers to not send it. This will save bandwidth and CPU.
Is it possible to filter nested properties like Attachment using $select
? I tried $select=Attachments.Name,Attachments.Size
but it didn't work.
我们可以将$select
用于展开项,例如下面的请求:
https://outlook.office.com/api/v2.0/me/messages?$expand=attachments($select=name,size)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.