Forum Discussion

DallasBland's avatar
DallasBland
Copper Contributor
Oct 02, 2019

How do I set the number of draft/minor versions each major version can have?

Hi all

Microsoft claims (https://support.office.com/en-US/client/results?Shownav=true&lcid=1033&ns=SPOSTANDARD&version=16&omkt=en-US&helpID=documentversions&ver=16&services=KAIZALA_O365_P3%2CMICROSOFT_SEARCH%2CWHITEBOARD_PLAN2%2CMIP_S_CLP1%2CMYANALYTICS_P2%2CBPOS_S_TODO_2%2CFORMS_PLAN_E3%2CSTREAM_O365_E3%2CDeskless%2CFLOW_O365_P2%2CPOWERAPPS_O365_P2%2CTEAMS1%2CPROJECTWORKMANAGEMENT%2CSWAY%2CINTUNE_O365%2CYAMMER_ENTERPRISE%2CRMS_S_ENTERPRISE%2COFFICESUBSCRIPTION%2CMCOSTANDARD%2CSHAREPOINTWAC%2CSHAREPOINTENTERPRISE%2CEXCHANGE_S_ENTERPRISEhttps://support.office.com/en-US/client/results?Shownav=true&lcid=1033&ns=SPOSTANDARD&version=16&omkt=en-US&helpID=documentversions&ver=16&services=KAIZALA_O365_P3%2CMICROSOFT_SEARCH%2CWHITEBOARD_PLAN2%2CMIP_S_CLP1%2CMYANALYTICS_P2%2CBPOS_S_TODO_2%2CFORMS_PLAN_E3%2CSTREAM_O365_E3%2CDeskless%2CFLOW_O365_P2%2CPOWERAPPS_O365_P2%2CTEAMS1%2CPROJECTWORKMANAGEMENT%2CSWAY%2CINTUNE_O365%2CYAMMER_ENTERPRISE%2CRMS_S_ENTERPRISE%2COFFICESUBSCRIPTION%2CMCOSTANDARD%2CSHAREPOINTWAC%2CSHAREPOINTENTERPRISE%2CEXCHANGE_S_ENTERPRISE that in the 'Versioning setting' section within a document libraries 'library settings'  that we can "Limit the number of versions and drafts to retain".

But from what I can see  that is not correct.

 

I can limit the number of major versions:
'Keep the following number of major versions'

 

I can set how many of those major version keep draft/minor versions:
'Keep drafts for the following number of major versions'

 

but there is nowhere where I can set the number of minor versions, or minor version per major version.

 

Is this setting set at a different level, like at the site collection level or something, or is it just something that is not actually available?

 

Cheers

dB

4 Replies

  • SinhaKislay's avatar
    SinhaKislay
    Iron Contributor

    DallasBland I don't think you can control this, it works the way you have described, check image I attached, this will it will delete minor versions of 1.0 when 3.0 was created. This is what you can control

    • DallasBland's avatar
      DallasBland
      Copper Contributor

      Thank you SinhaKislay. I suspect this is the case. But what confuses me is that Microsoft say the number of minor versions per major version is set to 511 by default. Am I wrong in assuming that by default implies that it can be changed? 

      • DallasBland's avatar
        DallasBland
        Copper Contributor

        Hi SinhaKislay 

        I contacted Microsoft Prem support and it turns out it is possible to control this minor version setting. Just not through the SP UI. It has to be done by powershell. See Example 5 at this linked article.

        https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnplist?view=sharepoint-ps

         

        Cheers

        Dallas

Resources