SharePoint List Attachment Download Issue using Code

Shekar 0 Reputation points
2026-07-30T16:09:55.0133333+00:00

I am facing an issue while trying to download attachments from a SharePoint List using Python code. The script is unable to download the attachments successfully, and the expected files are not being retrieved.

I have tried MS Graph api token that shows only attachment true or false. not attachement files.

Could you please help investigate the issue and suggest a resolution?

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

1 answer

Sort by: Most helpful
  1. Hin-V 16,830 Reputation points Microsoft External Staff Moderator
    2026-07-30T18:29:44.99+00:00

    Hi @Shekar

    Thank you for reaching out. 

    May I know the exact API endpoint being called from your side? 

    Based on my research, Microsoft Graph can indicate whether a SharePoint list item contains attachments through the Attachments field. However, I have not been able to find an officially documented Microsoft Graph endpoint that supports retrieving or downloading the actual attachment files from SharePoint list items.  

    As far as I know, SharePoint List Item attachments might not appear to be supported through Microsoft Graph. Instead, you may need to use the SharePoint REST API as a workaround to access and download the attachment files. 

    References: 

    MS Graph API - SharePoint List item attachments using Graph API - Microsoft Q&A 

    How to Download Attachments from SharePoint List Item using Microsoft Graph API - Microsoft Q&A 

    I hope this helps.   

    If you have any additional concerns, feel free to comment below. I would be more than happy to assist. 


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

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