Moving files from one document library to another

I want to move all files which are 30 days old, from one library to another.
What is the best way to do this?
Shall I create a workflow for this or a timer job? I am not sure if we can do this using workflow because I think it works on events and here I need a process that will work continuously (for e.g. every hour or every day etc) and check for files which are
30 days older, and move to different document library (this target library will be in another site collection).
What do you say?

There are 2-approach I would recommend here,
Either Create SharePoint Timer Job OR Create Windows Service which runs every day and will check the document library for any documents satisfy the 30 days old criteria.
Personally I will always go for Windows service. Reasons are easy to build/install/less downtime and if you use framework like Topshelf then easy to debug. Also it allows you to have configuration for your SharePoint Site/Document library. Libraries like
Serilog allows you to have better structured logs created for your service easily. Multiple instances of the same service running on the same server.
There are few links I want to share with you for kind of similar discussion happened earlier,
http://sharepoint.stackexchange.com/questions/96089/when-should-we-use-sharepoint-timer-job-and-when-windows-task-scheduler
https://social.msdn.microsoft.com/forums/sharepoint/en-US/abd71245-8f64-40ba-8861-a852893cd8d5/timer-job-vs-custom-windows-service
https://social.technet.microsoft.com/Forums/sharepoint/en-US/c87abaec-7cf2-4697-bf2d-31d235541598/sharepoint-timer-job-vs-windows-schedule-to-consume-web-service?forum=sharepointadminprevious
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this
will help others who are looking for solutions to the same or similar problem.

Similar Messages

  • Sharepoint 2010 - Archiving the files from one document library to another document library in sharepoint site

    I have a requirement to move the documents from one document library to another document library.
    Source Library - DocumentLib
    Destination Library - Archive
    Archive document library will have folders by fiscal year.
    Source documentlibrary has files from year 2012 till date.
    Archive folder will have folders by fiscal year -(fiscal year starts from July1st -June 30th )
    If the document is created date  between 1st  July 2012 -June 2013 then move the document to Archive document library and in  folder Fiscal Year 2013.
    If the document is created date  between 1st  July 2013 -June 2014 then move the document to Archive document library and in  folder Fiscal Year 2014.
    The structure of destination document library folder should be same as source document library.
    Please find attached the screenshot of the requirement.
    Files Type - Excel,pdf,microsoft outlook item
    Could we use Sharepoint designer workflow to achive this task?
    Any help on this will be appreaciated.

    Hi Asritha,
    According to your description, you want to create a workflow to meet the need.
    Per my knowledge, there is no built-in action which can move the documents from the current library to a folder in another library.
    I recommend to use the custom activity 'Copy List Item Extended' which need to be downloaded from
    http://spdactivities.codeplex.com/.
    Please per the steps below to deploy the custom activity to SharePoint:
    Download the activity form http://spdactivities.codeplex.com/
    Open Dos command prompt.
    Browse to the directory that you can access stsadm.exe. The default location in version 3.0 is C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\bin
    Type the stsadm commands: stsadm -o addsolution -filename C:\UsefulSPDWorkflowActivities_0.5.0\DP.Sharepoint.Workflow.wsp (“C:\UsefulSPDWorkflowActivities_0.5.0\” is the file path)
    Type the stsadm commands: stsadm -o deploysolution -name DP.Sharepoint.Workflow.wsp -allowgacdeployment -force -immediate 
    Open the Center Administration, Click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to the Web Application.
    After that, we can create a workflow to meet the need.
    Here is the detailed steps to create the workflow:
    Create a workflow associated with the Source Library DocumentLib and set the workflow to start when an item is created.
    Select If current item field equals value, change the settings to be If Current Item: Created is greater than 7/1/2012.
    Select If current item field equals value, change the settings to be If Current Item: Created is less than 6/30/2013.
    Select Copy List Item Extended, change the settings to be Copy item in Current Item to list at Fiscal Year 2013 folder url.
    Select Delete Item, change the settings to be Delete Item in Current Item.
    Select If current item field equals value, change the settings to be If Current Item: Created is greater than 7/1/2013.
    Select If current item field equals value, change the settings to be If Current Item: Created is less than 6/30/2014.
    Select Copy List Item Extended, change the settings to be Copy item in Current Item to list at Fiscal Year 2014 folder url.
    Select Delete Item, change the settings to be Delete Item in Current Item.
    Publish the workflow.
    Best regards.
    Thanks

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • Move a folder, sub-folders, and documents under that folder from one document library to another within a Workflow

    Hello,
    I'm building a workflow in SharePoint Designer 2010 (Unfortunately we are not on 13 yet), and in that workflow I need to move a folder (with all it's sub-folders and items) from one document library to another document library.
    I tried a copy item but that kept failing, I checked content type, columns, and permission and it all looks good.
    the other option I started looking into is to Create the folder in the document list and them move all the items under that folder to the new folder. However I can't figure out how to loop through each items in that folder.
    Has this issue been addressed? or does someone has a solution.
    I looked and searched and all I found was tutorials on moving single items into a folder, but not entire folders.
    Thanks
    Hani

    Why to take pain in creating a workflow that copies folders, sub-folders and all of its contents from one document library to another.
    Simply open your source and destination document library in Windows Explorer mode and start copying your folder, sub-folders and contents that you want to copy out of the box.
    You will find "Open with Explorer" button under the Library tab on the ribbon of document library.
    Please remember to click 'Mark as Answer' on the reply if it helps you

  • Move Files from one document set to another document set using workflow

    Hi All,
    Env : SP 2013 Server - SPD 2013.
    I'm trying to make a SPD Workflow that must copy a  files from one Document Set to another Document set in the same library other document library  
    Does Someone already get success for Copy  files from one Document Set to another Document set?
    Thanks for your help.

    Hi,
    According to your post, my understanding is that you wanted to move Files from one document set to another document set using workflow.
    I recommend to use the custom workflow activity  Copy List Item Extended Activityto
    copy files to another document set.
    You can do this with codeless SharePoint Designer workflows as long as you can install the
    Codeplex Custom SharePoint Designer Workflow Activities. 
    These activities are also built-in to SPD2013. However, you can only use the custom activities in the SharePoint 2010 Platform.
    To install the custom activities, please follow the steps as below:
    Download the solution file form
    Useful Sharepoint Designer Custom Workflow Activities
    Copy the wps file to the Disk C.
    Open the SharePoint 2013 Management Shell.
    Run the command: add spsolution c:\ dp.sharepoint.workflow.wsp
    Open the Center Administration, click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to one or more Web Application.
    Open the SharePoint designer, create SharePoint 2010      Platform workflow, add action from Custom Actions.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to copy a folder from one document library to another document library ?

    How to copy a folder from one document library to another document library by programmtically?
    Samarendra Swain
    Team Sharepoint
    www.manuhsolutions.com

    You can use the SPFolder.CopyTo method.
    public static void CopyFolder()
    SPFolder folder = null;
    using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
    using (SPWeb web = site.OpenWeb())
    folder = web.GetFolder("shared%20documents/newfolder");
    folder.CopyTo("tester4/newfolder");
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
    certdev.com

  • Moving photos from one iPhoto library to another

    Is there a way to move photos from one iPhoto library to another? I tried to use export, and that puts the photos in the other iPhoto library (I can see the photo if I open Hard drive>user>pictures>iPhoto Library but when I open iPhoto it is not in that Library's library.
    If I have not made myself clear, please ask and I'll try again.
    Dave

    sudkcore
    Is there really no other way than via third party software??
    Yes there is, detailed above: export from one, import to another.
    I love using iPhoto but this is a real drawback.
    Wow, really?
    I have bought an external disk so i can free the space on my laptop by moving photos and now I have to buy some software in order to do that??
    You don't have to buy it. What's more the free version of iPhoto Library Manager will move up to 20 pics at a time. And the paid version is only $20.
    BTW: you can run an entire library from the external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library Folder as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Moving events from one iPhoto library to another

    I want to move some events from one iPhoto library to another.  Does anyone know that this is possible and if so, how do I do it?

    iPhoto cannot do it . The full version of iPhoto Library Manager can transfer events between libraries, or Aperture can do this.
    You can download iPhoto Library Manager here:  iPhoto Library Manager
    If you want to save the money for additional tools, doit manually: 
    Export the photos from each event you want to transfer to a folder.
    Import the folders with images to your other iPhoto library.
    You have to make up your mind, if you want to move the original files to your other library or the edited versions.  Only exporting the original files instead of the edited files will preserve the full quality. Actually, you want to export both. Using iPhoto library Manager will ensure, that both will be transferred and paired as one photo.

  • I can't drag files from one shared library to another

    My computers recognize and display all shared libraries, and the files play on each computer, but files cannot be copied from one to another.  Is there a solution to this?

    iTunes has two kinds of sharing.
    Regular sharing allows listening, but does not allow copying.  It can be used with anybody on the same network. 
    The one you want is called Home Sharing.  It does allow copying,  It only works with other computers authorized to the same iTunes account.  To set it up, see this document:  http://support.apple.com/kb/HT3819

  • Moving files from one iweb program to another

    Well I've posted so many times and it seems no one has an answer for any of my issues going on with inspector. I can't change colors on anything in inspector, text, lines, hyperlinks, shadows. They are all "stuck" on black, except the shadow which is stuck on electric yellow.
    I have 2 web sites to finish by tomorrow morning and I will not be able to, unless.....
    I have a mac air and it has iweb on it how can I get the files from my iWeb on my iMac to the the iWeb on my Mac air?
    I've published to a folder on the iMac and can zip it up and send it to the MacAir. but once there they don't go into iWeb and there seems to be no import function.
    Is there some way to get them in there? I don't know what else to do.
    Would reinstalling iWeb help? Will I lose my 10 websites that are currently in iWeb if I reinstall it?
    Please please help.
    Susan

    susan-kelly wrote:
    I have a mac air and it has iweb on it how can I get the files from my iWeb on my iMac to the the iWeb on my Mac air?
    Susan ~ These articles may help:
    _iWeb 2.0 Help (iLife '08) — Modifying your site from another computer_
    iWeb: Publish to your MobileMe account from more than one computer
    http://iwebfaq.org/site/iWebTwocomputers.html

  • Moving pictures from one iphoto library to another

    Hello all, I have a simple question.
    I have all of my pictures on one computer in an iphoto library. I have a new imac (it's quite lovely) and I would like to move all my pictures to that mac. Which folders do I need to copy and move to my new computer? I would like to keep albums, etcetera.
    Normally I would just transfer all my stuff from one mac to the other and voila, it's done, but I have done that so many times that there is a problem with my User info and it has followed me from several computers now, so I am starting fresh. I would like to keep my pictures however. Which also leads me to my next question. Could someone suggest a good way to archive my 40 some-odd gigs of pictures?
    thanks in advance.

    Re: Copying the Library - Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions in the Library.
    Re: Archiving: There is no permanent storage solution for digital material. Yes DVDs do offer longevity but even the most expensive are prone to problems eventually. The cheaper ones sooner! To my mind the best option is to have a variety of solutions, on- and off-site. Optical media, Hard Disks, Online Storage solutions should all be used - and more importantly - checked regularly.
    Regards
    TD

  • Moving files from one itunes account to another

    Hey there,
    I was wondering if anyone can help me out. My mom got an ipad a couple of months ago and I just let her use my itunes account and she bought songs well now she got an iphone and I made her an account and I was wondering if there was a way to get the purchased content from my account to her account so everything will just be on hers and be done with it. Thanks so much!!!

    No, store purchases are permananetly associated with the account they were purchased with (or gifted to). However the devices can hold "protected" content from up to five different accounts. Songs purchased within the last few years are unlikly to be protected so there should be no problem adding both the content bought with your account and the newer purchases she makes on her own.
    tt2

  • I have a Windows 7 laptop using I tunes 64 and all my music files are on an external disc. I rarely use I tunes and at one point moved all my files (including the music files) from one external disc to another without considering what affect this wou

    I have a Windows 7 laptop using I tunes 64 and all my music files are
    on an external disc. I rarely use I tunes and at one point moved all my files
    (including the music files) from one external disc to another without
    considering what affect this would have on the I tunes library. When I eventually
    attempted to use I tunes, every selected a song from the library resulted in a
    message stating that the file couldn't be located. After following some of the procedures
    explained in this community I was able to reconnect the library back to where
    the associated music files are presently stored. However, there are still 2
    problems that need to be corrected. 1) Every song file now has a duplicate. One
    file works and the other file will result in the same message stating that the
    file couldn't be located. Before there were 4,000 songs in the library, now
    there are 8,000 songs. I need to eliminate the 4,000 dead song files. 2) All
    the playlists are still associated with the dead song files which makes the
    playlists unusable. Can the playlists be reconnected to the usable files
    without manually having to recreate them? Thanks in advance for the help.
    sdkr

    So am I understanding correctly?
    You used your iPod as a hard drive (drag and drop) instead of having iTunes install the music?
    If you used drag and drop your choices are different than if you used iTunes to transfer.
    Good luck!

  • Moving pages from one document to another in preview

    I have two PDF documents open with the sidebar on my desktop.  I have moved a page from one document sidebar to another and then saved the document with the additional page.  When I open the document the added page is not there.  This is extremely fustrating as I have tried this all different ways.  Any suggestios???

    See my reply in this thread here:
    Merge 2 pdf files into 1 ?: Apple Support Communities
    The movie is still available, watching it may help, it shows a method for adding all the pages from one PDF to another. The general idea of where to drag in the destination would still apply for adding just one page.
    Francine

  • Moving LR files from one external drive to another

    How do I move LR image files from one external drive to another external drive?

    Move the photos using your operating system and then re-connect in Lightroom following these instructions: Adobe Lightroom - Find moved or missing files and folders
    Do not use this as an opportunity to re-arrange folders or move photos from folder to folder. Just move the entire "tree" of folders.

Maybe you are looking for

  • Autologin on Windows Server 2008 R2 - local Administrator problem

    I needed an user to autologin on a Windows Server 2008 R2 server. Configured it following this guide: http://www.danj.co.uk/2011/06/enable-autologon-for-windows-2008-r2.html In addition I added the login information by using the Autologon tool from s

  • Problem With Deploying a very simple Servlet

    HELP REQUIRED: Hi, I'm including code of a very simple Servlet application (I shd not call it an application): index.html ========== <html><body bgcolor="#FFFFFF">      <head>      <title> Rajeev Asthana </title> <form action = "/HelloWorldApp/HelloW

  • IMovie for iOS 2.0 export doesn't work. Anyone else have this problem and how do you fix it?

    It seems that I can export projects that are very short (less than a minute) but anything longer than that simply shows the export progress bar and then never makes any progress. I've left it sitting there for an hour and it never moved. This also me

  • Will it work with R500? Amped Wireless High Power Wireless-3​00N 600mW USB Adapter.

    Hi all, new to this site and also to owning a laptop. Bought what I believe to be 2009 Thinkpad R500. It works well with windows 7 installed. I bought it  so that I could stream music in my shop connected to my stereo. I sometimes think I should have

  • Cannot view transport controls

    For some reason I am unable to view my transport control bar, when it used to be visible. I think it may be a silly problem that I just cannot seem to fix, though I've tried adjusting the screen and everything I can think to help fix the problem. I s