Hi Yabesh,
Thanks for reaching out.
You can use the expand on attachments property by using $expand as well.
For more details you can also refer to the following link as well
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to get latest mail with its attachment, but in the response its coming all the conversations inside the email, even i select the latest conversation also the full email conversation is coming inside the body as a html, Is there any way to fetch the latest mail and its attachment likewise we get in the mail.?
# Get the latest conversation
headers = {
'Authorization': f'Bearer {access_token}',
'Content-Type': 'application/json'
}
conversations_url = 'https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$top=1&$orderby=receivedDateTime desc'
conversations_r = requests.get(conversations_url, headers=headers)
Hi Yabesh,
Thanks for reaching out.
You can use the expand on attachments property by using $expand as well.
For more details you can also refer to the following link as well
Hi Yabesh,
Thanks for reaching out.
You can use the $expand thing on attachments property to get all the attachment details in one single request.
This has been explained in more detail at following link.