not able to retrieve 'reference' attachments from email using graph api

Nouman Farooq 6 Reputation points

retrieving email message expanding attachments doesn't retrieve referenceattachments (that we upload using upload & share from onedrive) If an email contains only reference attachments the list would return empty
Tried with this request
GET /users/{id | userPrincipalName}/messages/{id}/attachments
I tried following request as well
GET /users/{id | userPrincipalName}/messages/{id}?$expand=attachments
The above request gets all the attachments however reference attachments are not included in the result. It gets fileAttachments successfully.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,397 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RajeshKumarMSFT 1,971 Reputation points Microsoft Vendor

    Hi @Nouman Farooq ,

    Hope you are doing well,

    I was able to retrieve reference attachments from email using Graph API, when we send email with reference attachment from **outlook client **.
    Currently this feature is not supported with outlook web.

    If the answer is helpful, please click Accept Answer and kindly Upvote. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.
    0 comments No comments

  2. Nouman Farooq 6 Reputation points

    Hi @RajeshKumarMSFT thanks for update on this
    This used to work on outlook web as well but at that time reference attachments were not added as inline attachment link.

    0 comments No comments