cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PhilipCaldwell
Advocate I
Advocate I

Move List item with attachments and version history

This is about List Items - NOT document libraries.  For SharePoint Online.

 

With Content and Structure going away, how can we move a list item, with its attachments and version history to an archive list (with the same list structure of course).  I know I could write a flow to copy it (the attachments are troublesome but possible) and then remove it from the source list.  However, what about version history.  This allows us to keep track of all the changes the users did and who did them.  From an audit perspective, we need that if there was ever a problem.  I really wish MSFT had created a Move To and Copy To for list items like they did for document libraries!!!!  That is a really big miss.  There are 3rd party solutions but that means coughing up $$$ for something which was included before.

5 REPLIES 5
Harry_G
Kudo Kingpin
Kudo Kingpin

@PhilipCaldwell , I think this task is easy through using CSOM. If you intrested i will send you, I have code for copying document library with version history from one site to another site but it can be change for list as well. 

 

Thanks,

Harry_G

Sure, I'd love to see your sample code.

Hi, 

 

i'm looking for that also, do you get it work with Power Automate?

 

Thanks,

YHLow

Is this something that can be shared with the rest of the community? 

@SPJ3nney yes please follow the link for copying files, I just have to give an idea for copying list items however this is file copying code not list items.

https://github.com/alimughalx/CopySharePointFilesWithMetaDataAndVersionHistory 

 

Thanks,

Harry_G

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,072)