{"id":240,"date":"2018-09-19T14:31:16","date_gmt":"2018-09-19T14:31:16","guid":{"rendered":"https:\/\/www.harepoint.com\/Blog\/?p=240"},"modified":"2019-03-22T11:40:08","modified_gmt":"2019-03-22T11:40:08","slug":"sharepoint-retention-policy","status":"publish","type":"post","link":"https:\/\/www.harepoint.com\/Blog\/sharepoint-retention-policy\/","title":{"rendered":"SharePoint data retention policy with HarePoint Workflow Extensions"},"content":{"rendered":"\n<ul>\n<li><a href=\"#introduction\">Introduction<\/a>\n<li><a href=\"#started\">Getting started<\/a>\n<li><a href=\"#scenario\">Data Retention Scenario<\/a>\n<li><a href=\"#creating-workflow\">Creating a workflow<\/a>\n<li><a href=\"#configuration\">Completing Data Retention configuration<\/a>\n<li><a href=\"#conclusion\">Conclusion<\/a>\n<\/ul>\n<a name=\"introduction\"><\/a>\n<h2>Introduction<\/h2>\n<p>In a modern world, <b>Information Management<\/b> and <b>Data Retention Policies<\/b> become especially important. It is necessary to have clear policies and procedures on how information is regulated.<\/p>\n<p>SharePoint provides Information Management Policies allowing to keep this under control in an automated way, and when we talk about automation in SharePoint \u2013 this is where <a href=\"\/Products\/SharePoint-Workflows\/Default.aspx\"><b>HarePoint Workflow Extensions<\/b><\/a> can bring automation to a completely new level.<\/p>\n<p>In this article, we will describe a simple example of how <b>HarePoint Workflow Extensions<\/b> can be used for this purpose. Yet such a simple example can certainly bring you some new ideas of how you can further improve Information Management in your SharePoint environment, especially since the automation capabilities of <b>HarePoint Workflow Extensions<\/b> are almost unlimited.<\/p>\n\n<a name=\"started\"><\/a>\n<h2>Getting started<\/h2>\n\n<p>First, let&#8217;s see how Information Management Policy can be enabled and configured in SharePoint.<\/p>\n<p>Depending on a template that was used to create a site, Information Management Policy may or may not be available by default. In order to make sure, go to <b>Site Settings<\/b> of the root site of the site collection. Click on <b>Site collection features<\/b>.<\/p>\n<p>Two features need to be activated, <b>In Place Records Management<\/b> and <b>Library and Folder Based Retention<\/b>:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/SharePoint-site-collection-features-1.png\" alt=\"SharePoint Site Collection features\"><\/p>\n<p>Now you can go to document library settings (for which the Information Management Policies need to be configured), and click on <b>Information management policy settings<\/b> option:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/information-management-policy-settings-2.png\" alt=\"Information Management Policy settings\"><\/p> \n<p>Note that this option will not be available if the two features above are not activated!<\/p>\n<p>By default, it is set to enforce the retention schedule based on content types. In our example, we will switch it to library and folder based retention.<\/p>\n<p>Click <b>Change source<\/b> link:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/retention-source-changing-3.png\" alt=\"Changing of retention source\"><\/p>\n<p>Select <b>Library and Folders<\/b>:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/library-folders-retention-source-4.png\" alt=\"Library and folders as retention-source\"><\/p>\n\n<a name=\"scenario\"><\/a>\n<h2>Data Retention Scenario<\/h2>\n\n<p>In our example, documents in this library should be updated at least every three months. As soon as three months since last modified date have been reached, a notification should be sent to a person who last modified this document to inform that this document needs to be updated, or it will be automatically moved to Recycle Bin in one month, as this document is considered as &#8220;no longer used&#8221;.<\/p>\n<p>To achieve such data retention scenario, we would need to add two steps.<\/p>\n<p>Under <b>Library Based Retention Schedule<\/b>, click <b>Add a retention stage&#8230;<\/b> link to add a first step:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/add-retention-stage-5.png\" alt=\"Add retention stage\"><\/p>\n<p>As you can see, there are settings that describe an event \u2013 based off which date property this stage should trigger. In our example, the first stage should trigger 3 month after the document has been modified, so select there <b>Modified + 3 months<\/b>:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/setup-event-settings-6.png\" alt=\"Event settings\"><\/p>\n<p>Now is the most interesting and important in this article \u2013 in the <b>Action<\/b> section you can choose <b>Start a workflow<\/b> option:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/start-workflow-action-7.png\" alt=\"Start Workflow action\"><\/p>\n<p>It should be a list workflow associated with this document library.<\/p>\n\n<a name=\"creating-workflow\"><\/a>\n<h2>Creating a workflow<\/h2>\n<p>Let&#8217;s open SharePoint Designer and create such workflow, called <b>Retention Notification<\/b>, so that we could select it for this action.<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/retention-notification-workflow-8.png\" alt=\"Retention notification workflow\"><\/p>\n<p>At this stage, since we have <b>HarePoint Workflow Extensions<\/b> installed, which provides us <b>over 340 custom workflow actions<\/b>, we can achieve a widest range of possible scenarios.<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/harepoint-workflow-extensions-activities-9.png\" alt=\"HarePoint Workflow Extensions for SharePoint activities\"><\/p>\n<p>In this example however, we will only send a custom notification to a person who last modified the document, informing him or her that, this document has not been updated within last three months, and according to company information retention policies, it will be moved to Recycle Bin as an unused document.<\/p>\n<p>First, we need to obtain the e-mail address of a person who last modified the document. It can be done with <b>Get Site User Property<\/b> action:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/setup-site-user-property-10.png\" alt=\"Site user property\"><\/p>\n<p>Then add <b>Send E-mail without attachments<\/b> action, as follows:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/send-email-action-11.png\" alt=\"Send email activity\"><\/p>\n<p>As you can see, several lookups are used to specify recipient&#8217;s e-mail address (retrieved by a first workflow action), user name, document URL, and document name.<\/p>\n<p>Of course, with <b>HarePoint Workflow Extensions<\/b> you can go significantly beyond that: you can retrieve more information about the document or from the document itself, retrieve more data about user, log notifications and actions taken to a separate list, copy or move related documents across the entire farm, include document as an attachment to an e-mail, change document permissions, and many more.<\/p>\n<p>Click to <b>Save<\/b> and <b>Publish<\/b> the workflow:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/save-publish-workflow-12.png\" alt=\"Save and publish SharePoint workflow\"><\/p>\n<a name=\"configuration\"><\/a>\n<h2>Completing Data Retention configuration<\/h2>\n<p>Now, after we&#8217;ve created a workflow associated with the document library, we can select this workflow in <b>Action<\/b> menu:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/start-retention-notification-workflow-13.png\" alt=\"Run retention notification workflow\"><\/p>\n<p>Click <b>OK<\/b> and the first Data Retention stage will appear:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/first-data-retention-stage-14.png\" alt=\"First stage of data retention\"><\/p>\n<p>Click <b>Add a retention stage&#8230;<\/b> to add a second stage. Configure it to move the document to Recycle Bin after 4 months of inactivity:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/adding-next-retention-stage-15.png\" alt=\"Next retention stage adding\"><\/p>\n<p>This is how Data Retention Schedule finally looks like:<\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/final-data-retention-schedule-16.png\" alt=\"Final data retention schedule\"><\/p>\n \n<a name=\"conclusion\"><\/a>\n<h2>Conclusion<\/h2>\n<p>In this article, we have quickly reviewed the <b>Information management policy<\/b> settings in SharePoint &#8211; how to enable and how to configure them, as well as how this mechanism can be used in combination with <b><a href=\"\/Products\/SharePoint-Workflows\/Default.aspx\">HarePoint Workflow Extensions for SharePoint<\/a><\/b> to empower it with almost unlimited automation capabilities in SharePoint.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a modern world, Information Management and Data Retention Policies become especially important. It is necessary to have clear policies and procedures on how information is regulated. This article provides an example of how <a href=\"\/Products\/SharePoint-Workflows\/Default.aspx\"><b>HarePoint Workflow Extensions<\/b><\/a> can be used for smart and flexible automation of Information Management Policies in SharePoint.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[16,25],"_links":{"self":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":3,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":977,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts\/240\/revisions\/977"}],"wp:attachment":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}