How to export list with attachments ?

Copper Contributor

Hello, I thank anyone who can please help me.


Iam trying to export a list from my sharepoint site but even if i download in excel or in .csv, the attachments are not downloaded, is there any way to export the list including the attachments?

1 Reply

Hi @bhdez,

When exporting a SharePoint list to Excel or CSV, the attachments associated with list items are not included by default.

But, you can try to do it with some other options:

1. PowerShell: try to use PowerShell to export the list items and their attachments. Here's a sample script you can use for start:

$web = Get-SPWeb "https://your-sharepoint-site-url"
$list = $web.Lists["Your List Name"]
$exportPath = "C:\Export\"

foreach ($item in $list.Items)
$attachments = $item.Attachments
if ($attachments -ne $null)
foreach ($attachment in $attachments)
$file = $web.GetFile($item.Attachments.UrlPrefix + $attachment)
$filePath = $exportPath + $file.Name


2. Third-Party Tools: There are third-party tools available that provide enhanced exporting capabilities for SharePoint lists, including attachments. You can use: Sharegate or SPListX.

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Kindest regards

Leon Pavesic