logo
search
SharePoint Document Issues

How to Upload Attachments to SharePoint List Items via Microsoft Graph

Amos GikundaAmos Gikunda Sep 29, 2026 869 views

Question details

The user is looking for a way to upload file attachments directly to existing SharePoint list items using the Microsoft Graph API.

Uploading Attachments to SharePoint List Items with Microsoft Graph
Product
Microsoft Graph API
Device & OS
not provided
Scenario
Automating or developing an application that requires adding file attachments to a SharePoint list.
Observed behavior
Microsoft Graph currently lacks an endpoint to upload file attachments directly to SharePoint list items.
Before you start

Ensure you have SharePoint administrator or site owner permissions, and install the PnP PowerShell module if you plan to use the recommended workaround.

Solution 1Recommended

Alternative: Use PnP PowerShell to Add List Item Attachments

Since Microsoft Graph API does not natively support list item attachments, using the Add-PnPListItemAttachment cmdlet in PnP PowerShell is the recommended workaround.

Microsoft Graph can create list items and update their fields, but it currently cannot attach files to them. Developers rely on alternative endpoints or tools like PnP PowerShell to accomplish this.

1
Install and Connect PnP PowerShell

Open your PowerShell console and connect to your SharePoint site using the command: Connect-PnPOnline -Url 'https://yourtenant.sharepoint.com/sites/yoursite' -Interactive.

2
Execute the Attachment Cmdlet

Use the Add-PnPListItemAttachment cmdlet. You will need to specify the List name, the Item ID, and the Path to the local file you want to upload.

3
Verify the Upload

Navigate to your SharePoint list in the web browser and check the specific list item to ensure the attachment has been successfully uploaded and linked.

Alternative: Use PnP PowerShell to Add List Item Attachments
Feature Request: You can vote for this feature to be natively added to Microsoft Graph at the Microsoft 365 Developer Platform Ideas forum.
Free Microsoft Office alternative

Manage Your Office Documents Seamlessly with WPS Office

While navigating complex SharePoint API limitations, ensure your document creation workflow remains uninterrupted. WPS Office offers a powerful, lightweight, and highly compatible alternative to Microsoft Office for all your document needs.

  1. 1. Download and Install: Visit the official WPS website to download and install WPS Office on your device.
  2. 2. Create or Open Files: Launch the application and seamlessly open your existing Microsoft Office files without formatting loss.
  3. 3. Save and Upload: Save your documents in standard formats (like .docx or .xlsx) and manually upload them as attachments to your SharePoint list.
Completely free and lightweight Office suiteFully compatible with Microsoft Word, Excel, and PowerPoint formatsFamiliar user interface for a seamless migrationEasily edit and save documents locally before uploading them to SharePoint
QA img-9

Frequently Asked Questions

Can Microsoft Graph create SharePoint list items without attachments?

Yes, Microsoft Graph fully supports creating new list items and updating their text, number, or choice fields. The current limitation only applies to uploading file attachments directly to those items.

Is there a REST API alternative for uploading SharePoint list attachments?

Yes, you can use the traditional SharePoint REST API endpoint (/_api/web/lists/getbytitle('ListName')/items(ItemID)/AttachmentFiles/add) to upload attachments, which remains functional despite the Graph API limitation.

When will Microsoft Graph support SharePoint list attachments natively?

There is currently no official release date. Microsoft relies on user feedback from the Microsoft 365 Developer Platform to prioritize feature development, so voting for the respective feature request is highly recommended.