How to Upload Attachments to SharePoint List Items via Microsoft Graph
Question details
The user is looking for a way to upload file attachments directly to existing SharePoint list items using the Microsoft Graph API.

- 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.
Ensure you have SharePoint administrator or site owner permissions, and install the PnP PowerShell module if you plan to use the recommended workaround.
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.
Open your PowerShell console and connect to your SharePoint site using the command: Connect-PnPOnline -Url 'https://yourtenant.sharepoint.com/sites/yoursite' -Interactive.
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.
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.

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. Download and Install: Visit the official WPS website to download and install WPS Office on your device.
- 2. Create or Open Files: Launch the application and seamlessly open your existing Microsoft Office files without formatting loss.
- 3. Save and Upload: Save your documents in standard formats (like .docx or .xlsx) and manually upload them as attachments to your SharePoint list.

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.




