Skip to content

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

Merged
KoenZomers merged 2 commits intopnp:devfrom
KoenZomers:AddDocumentLibraryDocIdReset
Feb 24, 2025
Merged

Updated Reset-PnPDocumentID to also support resetting the document id for a library#4755
KoenZomers merged 2 commits intopnp:devfrom
KoenZomers:AddDocumentLibraryDocIdReset

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