Ok I managed to find a solution by using shared links
https://learn.microsoft.com/en-us/graph/api/shares-get?view=graph-rest-1.0&tabs=http
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a requirement where I have to download the content that is attached to the emails in my organisation.
Scenarios include
I can access these emails, but the problem is I am unable to download the actual content. For instance the attachments endpoint (when I share via OneDrive):
https://graph.microsoft.com/v1.0/users/{user-id}/messages/{msg-id}/attachments
Returns the actual attachments on the email (i.e. images). I am able to extract a href off the body content but I do not know how to download the content that is linked? i.e.
https://sharepoint-my.sharepoint.com/:x:/g/personal/administrator/<id?>>?e=4%3a0uILKI&at=9\
When I attach when a new email is created:
https://sharepoint.sharepoint.com/:w:/t/TestTree/<id?>
Again I don't know how to download the content that is being linked in the href.
Any idea how I can do this guys? Thanks
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
Ok I managed to find a solution by using shared links
https://learn.microsoft.com/en-us/graph/api/shares-get?view=graph-rest-1.0&tabs=http