First published on TECHNET on Oct 16, 2016 This post is a contribution from Manish Joshi, an engineer with the SharePoint Developer Support team Custom Formula is implemented with Class CustomFormula.cs, compiled to a custom assembly and consumed through the following method: Microsoft.Office.RecordsManagement.InformationPolicy.PolicyResourceCollection.Add(xmlExpirationForm... Following is sample code to install the custom formula
To set custom retention policy for a content type with above registered CustomExpirationFormula, the sample code is:
To set the custom retention policy at the web's content type level, use following code to create a child content type for a web. Be sure to use a different content type name for the root web's content type though. For root web,
For non-root web:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.