web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Migrating SharePiont l...
Power Automate
Unanswered

Migrating SharePiont list items

(0) ShareShare
ReportReport
Posted on by 81

Hi there,

 

Is there a way to migrate SharePoint list items including all attachments and comments to another SharePoint list (ex. archive)?

 

I would like to cerat a flow that monitorers and migrates all items that are older then ex. one year.

 

BR / Zoran

 

 

 

 

Categories:
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Yes, you can do that.

     

    Step 1) Make a scheduled daily flow.

    Step 2) Get all items using a Filter Query to find Created (or Modified - depending on your need) date of today minus 1 year.

    Step 3) For each item returned, use the actions shown in the right side of Mabels' solution, here: https://powerusers.microsoft.com/t5/General-Power-Automate/Move-attachment-from-one-list-to-another/m-p/150304/highlight/true#M26659 and use this solution for comments: https://debajmecrm.com/how-to-get-comments-of-a-sharepoint-list-item-in-power-automate/

    Step 4) Delete each item from the current list after validating it exists in the new list. (You could do a query to ensure it moved over, for example.) 

    The comments will be more work, as you can see. But at least migrating the items is just creating them in the new place, and deleting them from the old.

     

  • rosssmith123 Profile Picture
    18 on at

    A SharePoint list is a collection of data that gives you and your co-workers a flexible way to organize information. Follow the steps mentioned below to migrate a list from one site collection to another.

     

    Step 1: Export the list
    Login to SharePoint and go to List Settings.
    Under the Permissions and Management section click Save list as template.


    Step 2: Export list to another site collection
    On the top-level site of the site collection containing the list that you want to copy, click Site Settings.
    In the Galleries section, click List templates.
    On the List Template Gallery page, select the check box next to list template that you want to export.
    In the ribbon Click Download a Copy.


    Step 3: Uploading the list to a new site collection.
    You should now have a stp file. Now go to the site collection you want to copy the list to.
    Click Site Settings.
    In the Galleries section, click List templates.
    Click on the Documents tab.
    Click Upload Document.
    Click Choose File and navigate and choose the stp file you downloaded.
    Click Ok.

     

    This may help you,

    Ross Smith

  • Zoran Profile Picture
    81 on at

    Thanks, 
    I'll try to follow the guide and let you know if I succeed 🙂

    Br/Zoran

     

  • Rhiassuring Profile Picture
    8,692 Moderator on at

    @rosssmith123 - That will not do what they are looking for in this scenario. "

    I would like to create a flow that monitors and migrates all items that are older then ex. one year."
    Migration in the form you've suggested is only for picking up a bunch of data and moving it - not for reviewing it programmatically. 

  • Zoran Profile Picture
    81 on at

    Hi Rhiassuring,

     

    I managed put together the following...

     

    Step 1) Make a scheduled for monthly run checking all items created from current date - xxx days. This works as expected...

    Step 2) Get all items using a Filter Query to find Created (or Modified - depending on your need) date of today minus 1 year.
    ex. Status eq 'Hanterad' and InbetDatum lt '@{variables('Date')}'

    This works as expected...

    Step 3) For each item returned, create the item in new list including the attachments

    This works as expected...

    Step 4) For each item copy the comments to the item in the archive list.

    I managed to extract the comments and inserting them with my account.

    This works as expected...

     

    Step 5) Delete each item from the current list after validating it exists in the new list. (You could do a query to ensure it moved over, for example.) 

    Do you have any exempel for step 5?

     

    Zoran_2-1660546182816.png

     

     

  • Zoran Profile Picture
    81 on at

    Step 4) For each item copy the comments to the item in the archive list.

    I managed to extract comments from list items and I finally figured out how to insert them in the archive list. There was no way of inserting the comments with original author so I insert them with my account and then in the comment I merge the e-mail from original author with the date and text. In this way I was successful 😀.

    22.png

     

    Step 5 remains, gathering info on below approach.

    Delete each item from the current list after validating it exists in the new archive list.

    Does anyone have any exempel for step 5?

    I have found several examples, but non that validates if the copy really worked.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard