Retención personalizada en SharePoint 2013
-
10-12-2019 - |
Pregunta
Quiero agregar retención de datos personalizados a la colección de mi sitio de esta manera:
- Los documentos deben eliminarse después de 3 años (opción predeterminada)
- Después de 3 años, elimine todas las versiones, excepto las últimas y dos versiones anteriores
Supongo que esta política no está disponible de forma predeterminada y debe ser codificada en PowerShell (?).¿Alguien puede guiarme hacia la dirección correcta?No estoy familiarizado con SharePoint o PowerShell (tengo algunos conocimientos básicos de programación).
Solución
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.
Otros consejos
Got to /_layouts/mngctype.aspx. Click on the Content Type you want to set the retention properties. Click on information management policy settings
You will see Retention option