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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (64,655)