Вопрос

Я хочу добавить пользовательские хранения данных в мою коллекцию сайта в этом пути:

    .
  • Документы должны быть удалены после 3 лет (опция по умолчанию)
  • Через 3 года удалите все версии, кроме последних и двух предыдущих версий

    Я предполагаю, что эта политика по умолчанию недоступна и должна быть закодирована в PowerShell (?).Может ли кто-нибудь направлять меня в правильное направление.Я не знаком с SharePoint или PowerShell (у меня есть некоторые основные знания программирования).

Это было полезно?

Решение

You need to create and register custom expiration action, i.e. implement the IExpirationAction interface. You will also have to implement the version deletion yourself. See this or this tutorial on registering custom action. The action will become available in the expiration policy settings after you register it.

Другие советы

Got to /_layouts/mngctype.aspx. Click on the Content Type you want to set the retention properties. Click on information management policy settings

Go to site content type information

You will see Retention option

enter image description here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top