Graph API - SharePoint List Item Attachment

Akhil Sai 50 Reputation points
2024-10-22T16:31:34.2233333+00:00

Hello,

I've been trying to fetch attachments in SharePoint List items.

User's image

This is the query I'm using :

https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/?expand=fields(select=Title,Attachments)

User's image

It returns Attachments field with either true or false indicating the presence of attachment, but not the Attachment URL or data.

Could you please help me get the attachment URL of List items in SharePoint.

Thanks.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Hitesh Pachipulusu - MSFT 3,620 Reputation points Microsoft External Staff
    2024-10-23T07:09:46.06+00:00

    Hello Akhil Sai,

    Thank you for reaching out to Microsoft Support!

    There is no direct Microsoft Graph API endpoint to get attachments for SharePoint list items. However, you can achieve this using a combination of SharePoint REST API and Microsoft Graph API.

    Please refer the accepted Q&A post.

    Hope this helps.

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

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.