Let's add new versioning capabilities to SharePoint lists.
Get file versioning capabilities
Expand spo list get command with VersionPolicies navigation property which looks like this:
{
"DefaultExpireAfterDays": 0,
"DefaultTrimMode": 0
}
So we have to expand the VersionPolicies property here.
DefaultTrimMode is an enum, I suggest we add another property called DefaultTrimModeValue that contains the label of the value.
| Label |
Value |
| NoExpiration |
0 |
| ExpireAfter |
1 |
| AutoExpiration |
2 |
Let's add new versioning capabilities to SharePoint lists.
Get file versioning capabilities
Expand
spo list getcommand withVersionPoliciesnavigation property which looks like this:{ "DefaultExpireAfterDays": 0, "DefaultTrimMode": 0 }So we have to expand the
VersionPoliciesproperty here.DefaultTrimModeis an enum, I suggest we add another property calledDefaultTrimModeValuethat contains the label of the value.