Why custom list item versions do not preserve the attachments when restore an old version

john john Pter 905 Reputation points
2025-02-23T23:38:08.8733333+00:00

I have a custom list which contain custom content type and it allow attachments, now i am storing 100 item versions ..

but i have noted when i restore a previous version of the list item, it will always keep the current attachment and ignore the version attachment, is this a limitation inside SharePoint custom list? and is there any workarounds?

For example on version 1, i have an attachment named 1.docx

 

 

and on version 2, i have uploaded another attachment named 2.docx ans remove 1.docx, 

 

but when i restore the item to version 1, i got 2.docx as the attachment instead of 1.docx,

 

Any advice ?

 

Thanks

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,454 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,521 Reputation points Microsoft External Staff
    2025-02-24T07:29:48.68+00:00

    In SharePoint lists, when you restore a previous version of a list item, the attachments associated with that version are not automatically restored. Instead, the current attachments remain, and the previous version's attachments are not included. This behavior is due to the way SharePoint handles versioning for list items and their attachments.

    SharePoint's versioning for list items tracks changes to the item's properties but does not include attachments in the version history. Therefore, when you restore a previous version of a list item, the system does not revert to the attachments that were present at that time. This limitation arises because attachments are stored separately from the list item properties and are not versioned alongside them.

    As a workaround, you could create a Power Automate flow to automate the process of restoring attachments when a list item version is restored.

    Reference:

    https://www.csharp.com/blogs/restore-version-of-a-sharepoint-list-item-using-power-automate

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


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

    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.


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.