Reputation: 4926
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.
Upvotes: 0
Views: 208
Reputation: 14649
We can use the $select
for the expand item like request below:
https://outlook.office.com/api/v2.0/me/messages?$expand=attachments($select=name,size)
Upvotes: 1