How to make an SPList support minor versioning in Sharepoint?

Puneeth, C 81 Reputation points
2022-06-03T14:19:24.923+00:00

I have a list to which I am trying to write files with different versions. But whenever it hits list.EnableMinorVersions = true; it throws the error message - This list does not support minor versioning. How do i fix it? If possible, I'd like to do it within the code itself.

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.
1,686 questions
{count} votes

Accepted answer
  1. Tong Zhang_MSFT 8,801 Reputation points
    2022-06-06T03:21:30.657+00:00

    Hi @Puneeth, C ,

    According to my research and testing, the minor versions works only for lists based on SharePoint Document Library. It not work for SharePoint list because SharePoint list does not support minor versioning.

    For reference:
    https://www.codesharepoint.com/sharepoint-tutorial/sharepoint-list-vs-document-library#2.-versions-supported


    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.



0 additional answers

Sort by: Most helpful