{"id":1795,"date":"2015-09-29T21:22:34","date_gmt":"2015-09-29T21:22:34","guid":{"rendered":"http:\/\/www.obieta.com\/?p=1795"},"modified":"2015-09-29T21:22:34","modified_gmt":"2015-09-29T21:22:34","slug":"1795","status":"publish","type":"post","link":"https:\/\/obieta.com\/?p=1795","title":{"rendered":"Archive SharePoint Document Library"},"content":{"rendered":"<p>Follow these steps to create a workflow:<\/p>\n<ol class=\"letter\">\n<li>On the <b>SharePoint<\/b> site, create an Archive library and a Status column.\n<ol>\n<li>Open <b>Site Contents<\/b>.<\/li>\n<li><img title=\"Microsoft Sharepoint 2013 Add an App Icon\" src=\"http:\/\/www.kalmstrom.com\/Tips\/images\/SharePoint2013ArchiveDocs\/AddAnApp.PNG\" alt=\"Sharepoint Add an App Icon\" \/>Select <b>add an app<\/b> and create a new <b>Document Library<\/b> .<\/li>\n<li>Open the original library. From the <b>Library<\/b> tab, go to <b>Create Column<\/b> to add a new column for status.<img title=\"Microsoft Sharepoint 2013 Create Column\" src=\"http:\/\/www.kalmstrom.com\/Tips\/images\/SharePoint2013ArchiveDocs\/Createcolumn.PNG\" alt=\"Sharepoint Create Column\" \/><\/li>\n<li>Select the <b>Type<\/b> \u201cChoice (menu to choose from)\u201d and enter <b>choice values<\/b> (in this case New, Ongoing and Expired).<\/li>\n<\/ol>\n<\/li>\n<li>In <b>SharePoint Designer<\/b>, create a workflow\n<ol>\n<li><img title=\"Use SharePoint Designer to create workflows.\" src=\"http:\/\/www.kalmstrom.com\/images\/Microsoft\/SharePointDesigner64x64.png\" alt=\"SharePoint Designer icon\" \/>From <b>Lists and Libraries<\/b>, open the original library.<\/li>\n<li>From the <b>List Settings<\/b> tab, click <b>List Workflow<\/b> and create a workflow.<\/li>\n<li>Open a summary page for the new workflow.<\/li>\n<li>Under <b>Start Options<\/b>, check all <b>checkboxes<\/b>.<\/li>\n<li>Go to <b>Edit workflow<\/b> under <b>Customization<\/b> and set the <b> Transition to Stage<\/b> as \u201cEnd of Workflow\u201d.<\/li>\n<li>Press <b>Condition<\/b> and select <b>If value equals value<\/b>. Now you will get the text &#8220;<b>If value equals value<\/b>&#8221; under Stage 1.<\/li>\n<li>Click on the first <b>value<\/b> and set the <b>return field<\/b> to the newly created column name. Here it is <b>Document Status<\/b>.<\/li>\n<li>At the place of the second <b>value<\/b> you will get a dropdown with the <b>Choices values<\/b> that you set while creating the column. Select the value that you want to use as a trigger for the move to another library, here <b>Expired<\/b>.<\/li>\n<li>Press the <b>Action<\/b> button and select <b>Copy Document<\/b>. Now you will find the text \u201c<b>Copy Document in this library to this library<\/b>\u201d at Stage 1.<\/li>\n<li>Click the first <b>this library<\/b> and set it to <b>Current Item<\/b><\/li>\n<li>Set the second <b>this library<\/b> to the <b>Archive<\/b> library you have created.<img title=\"kalmstrom.com Tip on archiving SharePoint library documents\" src=\"http:\/\/www.kalmstrom.com\/Tips\/images\/CopyDocs\/WFSettings.png\" alt=\"Move Docs in SharePoint Workflow\" \/><\/li>\n<li>Press the <b>Action<\/b> button and select <b>Delete Item<\/b>. Now you will find the text \u201c<b>then Delete item in this list<\/b>\u201d under Stage 1. Click this list and select <b>Current Item<\/b>.<\/li>\n<li>Click on <b>Publish<\/b>.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Now whenever you set the Document Status column of any file in the original SharePoint library to Expired, that file will automatically be copied to the Archive library, and the file from the original library will be deleted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow these steps to create a workflow: On the SharePoint site, create an Archive library and a Status column. Open Site Contents. Select add an app and create a new Document Library . Open the original library. From the Library tab, go to Create Column to add a new column for status. Select the Type [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1795"}],"collection":[{"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1795"}],"version-history":[{"count":0,"href":"https:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1795\/revisions"}],"wp:attachment":[{"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}