Skip to content

Updated Reset-PnPDocumentID to also support resetting the document id for a library #4755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Reset-PnPDocumentID now also supports resetting all document ids for all documents in a document library using the -Library parameter. This requires the -ContentType to be specified as well. It is not possible to run it on all files in a document library, regardless of their content type. This is a server side requirement. Notice that you need the content type applied to the document library itself, so i.e. not a 0x0101 but the specific content type of that on that library. See the sample in the documentation.

@KoenZomers KoenZomers merged commit 136d1a5 into pnp:dev Feb 24, 2025
4 checks passed
@kachihro
Copy link
Contributor

kachihro commented May 9, 2025

Thanks for this great new feature.

BUT - this doesn't work for DOCUMENT SETS - is that possible, somehow ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants