office365 - Retrieving messages with embedded images - HasAttachments flag or something else? -


i'm working v2.0 messages api retrieve messages office365 or outlook email accounts.

when retrieving messages attachments, hasattachments flag set true know retrieve attachment(s) message.

one issue i'm seeing when there embedded image no attachment, hasattachments flag set false.

/api/v2.0/me/messages/{messageid} 

i didn't see other attributes in message json data specify if message has embedded images...

but, if call attachment api can retrieve embedded images if hasattachments flag set false.

/api/v2.0/me/messages/{messageid}/attachments 

is there flag should checking know if need retrieve attachments/parts embedded, or should hasattachments flag true in case of embedded images/objects , no attachments?

for i'm retrieving attachments every message processed. if there no attachments or embedded objects returns empty list works fine.

but if there flag telling me if there attachment and/or embedded objects make things quicker , require less api calls.

thanks!


Comments