Skip to content

New sample script: Copy files to another SharePoint Library in another site#2370

Closed
Adam-it wants to merge 1 commit intopnp:mainfrom
Adam-it:copy-files-to-another-sharepoint-library
Closed

New sample script: Copy files to another SharePoint Library in another site#2370
Adam-it wants to merge 1 commit intopnp:mainfrom
Adam-it:copy-files-to-another-sharepoint-library

Conversation

@Adam-it
Copy link
Copy Markdown
Member

@Adam-it Adam-it commented Apr 17, 2021

new spo sample script - Copy files to another SharePoint Library in another site

🎯 Aim

The aim of this PR is to add a sample script to show how CLI may be used to copy files from source document library from source site to a different library in different site in two ways: first keeping the same structure or coping all files to the root of the target library.

✅ What was done

✔ added sample
✔ updated the mkdocs.yml

📸 Result

how it works:
keeping the same structure
same

coping all files to the root folder
root

Linked Issue

#2349

@Adam-it
Copy link
Copy Markdown
Member Author

Adam-it commented Apr 17, 2021

btw I noticed a small typo in the https://pnp.github.io/cli-microsoft365/cmd/spo/folder/folder-copy/
image
should be copy I guess 🤔.

@waldekmastykarz
Copy link
Copy Markdown
Member

Awesome! We'll review it asap. Thank you! 👏

@rabwill
Copy link
Copy Markdown
Contributor

rabwill commented Apr 20, 2021

@Adam-it works like a charm ! 💪 thank you so much.

@rabwill rabwill closed this in f16da0b Apr 20, 2021
@rabwill
Copy link
Copy Markdown
Contributor

rabwill commented Apr 20, 2021

@Adam-it awesome work and we have merged it manually! thanks again for your help! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants