none
Copy list item to other list within the same site?

    Question

  • Hello - I am using Sharepoint 2010.  I have two custom lists but only one list has any items.  I am looking for a way to copy items from the one list to the other.  I DO NOT want to use a workflow because when I tried that, the version history did not get copied over, and this includes the muti-line text fields that are in the append-only mode.  I am hoping that there is a manual way by going through either the Admin Site or something in the Site Settings of the site itself.  I could even do a one-time timer job if I knew of the code that could get it done.  I have seen some references to a site manager, but I cannot find that.  I also have seen several other posts concerning this topic but can't seem to find the exact scenario I am in.  Any thoughts would be appreciated.

    Thanks - Peter

    Monday, August 19, 2013 2:08 AM

Answers

  • Hi

    here is an example how to extract version

    http://blogs.captechconsulting.com/blog/amarender-peddamalku/sharepoint-2010-powershell-script-extract-the-version-history


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Tuesday, August 20, 2013 6:39 AM

All replies

  • Peter,

    There is no OOB way to do this (copy with versions). You will have to develop a timer job or some application page.

    Here is a good reference with code for the activity. https://www.nothingbutsharepoint.com/sites/itpro/pages/copying-documents-between-libraries-with-metadata-including-version-history.aspx

    Let us kow if you face any issues.


    Pradip T. ------------- MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile


    • Edited by Pradip T Tuesday, August 20, 2013 6:51 AM
    Monday, August 19, 2013 3:35 AM
  • Hi

    2 ways

    A. a workflow

    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9ba8e378-2633-4546-89ac-e63809d7f53c/sharepoint-designer-2010-workflow-copy-list-item

    B a powershell script

    http://mysharepointofview.com/2009/09/copy-items-from-one-list-to-another-using-powershell/


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Monday, August 19, 2013 12:35 PM
  • Thanks Romeo.  The Powershell script actually ran nicely on my Sharepoint 2010 even though I think it was written at the time for 2007.  My only issue is that it did not bring over the historical "appended" values for my multi-line text fields.  It only brought the last one over.
    Tuesday, August 20, 2013 2:13 AM
  • Hi

    here is an example how to extract version

    http://blogs.captechconsulting.com/blog/amarender-peddamalku/sharepoint-2010-powershell-script-extract-the-version-history


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Tuesday, August 20, 2013 6:39 AM