

#Codelink v2 modify classified archives data archive
Specify source site address in Current site address and Identifierfrom Get file (properties only) action after that specify Destination site address and Destination folder or a library and in If another file is already there dropdown specify Move with a new name.Īs you see, the flow will run every day at 4 PM and the result is Archive library have 5 files are successfully moved. Now in this action, we once again specify source Site address and Identifier. Next step is to get each file content using Get file content action. The value instance has an array of files so we iterate each file to get a file metadata by specifying source Site address and Identifier.


Now in this step, we process/iterate all filtered files using Apply to each action. Limit columns by view here are better to specify Use all columns (Do not limit) so it gets all metadata related source files. To specify the number of items to be returned, expand the advanced options and specify the number in the Top Count action property. If you are working with large lists Files, you can increase this limit up to the list view threshold limit which is 5,000. If you are using the default options and just specifying the site address and library name, the flow will return 100 items from the library. This will give us a list of documents to move in instance value Get files (properties only) action have filter query here we specify Now in this action, we compare to date with a Modified date of documents of source library. In the above step, we get compared to date. It will automatically store it in an instance, Past time. Get past time action helps to get the date to compare, We specify 365 weeks in Intervaland Time unit to get a date of the past from the current date time mean we get 7-year past date.

Here we set flow every day at 4 PM with Indian time. Recurrence action has frequency option day, week even though Month, hour, seconds with timezone. We started with a Recurrenceaction to set a flow to run frequently. Where top 5 files are last modified date is almost 7 years passed except the last file. We archive files of parent site Documents library to sub-site Archive library. We can achieve archiving the files using Microsoft Flow without loss of metadata. If destination connection not setup in our site collection, we need Central Admin permission to setup this. If we do without a connection, we will get an error “ There are no registered destination locations for this site. Here we need to set up a destination connection through central admin. To Archiving library files that are not modified last 7 years, we have option ‘Transfer to another location’. Ones we activate this feature we able to set a retention policy here we got options like Move to recycle bin, Permanently delete, Transfer to another location, start a workflow etc. We need to activate this feature which is available in Manage site features under Site Action. This not only saves time but can help make sure that a document library is managed consistently. The Content Organizer is a SharePoint feature that can automatically manage routing documents/folders from one library to another. To accomplish above job in SharePoint, we will utilize Content Organizer feature. Suppose there is a requirement to Archiving library files that are not modified last 7 years. Hello everyone, in this blog we will discuss on “Archiving the files from one document library to another document library in SharePoint”.
