Skip to content

There is currently no equivalent to Copy-PnPFile in this library? #715

Answered by jansenbe
horacioj asked this question in Q&A
Discussion options

You must be logged in to vote

@horacioj : copying pages between sites is rather complex as you'd not only need to copy the page but also the relevant artefacts used by the page (or alternatively ensure the proper permissions are granted). Copying pages across sites is not something currently supported by the SharePoint UI either. If you're talking about copying files, then yes we still need to wrap the REST copy APIs in PnP Core (#406). If you can't wait for that work you can either make custom REST requests using PnP Core SDK (see https://pnp.github.io/pnpcore/using-the-sdk/basics-customapirequests.html#making-a-custom-spo-rest-request) or alternatively update PnP Core SDK and create a PR to submit your work to the c…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@horacioj
Comment options

@jansenbe
Comment options

Answer selected by horacioj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants