SOLVED

Sharepoint List

%3CLINGO-SUB%20id%3D%22lingo-sub-2651580%22%20slang%3D%22fr-FR%22%3ESharepoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2651580%22%20slang%3D%22fr-FR%22%3E%3CP%3EHi%20everyone.%20So%20here%20I%20have%20a%20starting%20tenant%20with%20a%20starting%20Sharepoint%20list.%20Now%20I%20want%20to%20integrate%20it%20into%20an%20arrival%20tenant%20with%20an%20arrival%20Sharepoint%20list.How%20to%20do%20this%20using%20powershell%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2651793%22%20slang%3D%22en-US%22%3ERe%3A%20Sharepoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2651793%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1129281%22%20target%3D%22_blank%22%3E%40Numberone1%3C%2FA%3E%26nbsp%3BCan%20you%20please%20explain%20more%20about%20your%20requirements%3F%20what%20is%20%22%3CSPAN%3Earrival%20tenant%22%20%26amp%3B%20what%20exactly%26nbsp%3Byou%20mean%20by%20%22integrate%22%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20you%20want%20to%20copy%20list%2Fsite%2Ftenant%20structure%2C%20check%20this%20documentation%20of%26nbsp%3BPnP%20provisioning%20engine%3A%26nbsp%3B%3CA%20title%3D%22Introducing%20the%20PnP%20provisioning%20engine%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fintroducing-the-pnp-provisioning-engine%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EIntroducing%20the%20PnP%20provisioning%20engine%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%26nbsp%3B%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%26nbsp%3B%26amp%3B%20%3CSTRONG%3ELike%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2652397%22%20slang%3D%22fr-FR%22%3ERe%3A%20Sharepoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2652397%22%20slang%3D%22fr-FR%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F373269%22%20target%3D%22_blank%22%3E%40ganeshsanap%3C%2FA%3E%20A%20Sharepoint%20list%20of%20data%20that%20I%20want%20to%20move%20from%20account%20A%20to%20account%20B.%3C%2FLINGO-BODY%3E
New Contributor

Hi everyone. So here I have a starting tenant with a starting Sharepoint list. Now I want to integrate it into an arrival tenant with an arrival Sharepoint list. How to do this using powershell?

4 Replies

@Numberone1 Can you please explain more about your requirements? what is "arrival tenant" & what exactly you mean by "integrate"?

 

If you want to copy list/site/tenant structure, check this documentation of PnP provisioning engine: Introducing the PnP provisioning engine 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@ganeshsanap A Sharepoint list of data that I want to move from account A to account B.
best response confirmed by Numberone1 (New Contributor)
Solution

@Numberone1,

For list data migration, you can use Microsoft supported SharePoint Migration Tool (SPMT) or 3rd party tool like ShareGate Desktop


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@Numberone1 

I know this already has best answer but the initial question was to use powershell and, at least I think so, to move List with data from Tenant A to Tenant B. If this is something that simple we could do it using following commands in PnP Powershell:

 # step 1. connect to some site where is the list on tenant A
 Connect-PnPOnline -Url "https://SiteUrlFromTenantA"
 # step 2. get list template
 Get-PnPSiteTemplate -Out "C:\TempDemo.xml" -ListsToExtract "testList" -Handlers Lists -Force
 # step 3. populate list template with data
 Add-PnPDataRowsToSiteTemplate -Path "C:\TempDemo.xml" -List "testList"
 # step 4. disconnect from tenant A
 Disconnect-PnPOnline
 # step 5. connect to some site where is the list on tenant B
 Connect-PnPOnline -Url "https://SiteUrlFromTenantB"
 # step 6. apply the list template with data
 Invoke-PnPSiteTemplate -Path "C:\TempDemo.xml"

I hope this will be of any help :)