Many times, we arrive in a situation when we want to move the SharePoint Online List/Library from one site to another site either with data or without data. This article describes how to move the master list with data and transaction list without data from one site to another site. e.g., Movement from Development to Quality or from Quality to Production.SharePoint-2013-Hosting

Maintain the SharePoint List and Library which need to be copied from one site to another site

To keep the thinks configurable and this solution will have two files.

  1. Lists.csv – which will contain the list details which need to be copied from one site to another site. Edit the Lists.csv file and add your list name and a 0 or 1 for if this is a lookup list.
  2. environments.json – Edit this file to maintain environment details.

Sample Lists.cs

Sample Environments.json

PowerShell Script

Output

Summary

PnP PowerShell is a preferred way to go with modern SharePoint. It helps to easily move the SharePoint List from one site to another site.