Programmatically Create Custom Information Management Policy

Requirement: Archive completed expense forms to yearly archive libraries, declare them as records and destroy them 7 years after creation.  This of course needs to be done without user intervention.

I set out to learn how to programmatically do this thru a monthly custom Timer job.

1.  2 Namespaces to call out for this solution:

Note: Records Management settings are inherited from the site collection settings which in our case allowed for manual record declaration. Continue reading “Programmatically Create Custom Information Management Policy”