We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue
Following the current documentation here: https://pnp.github.io/powershell/cmdlets/Add-PnPDocumentSet.html
-ContentType The name of the content type, its ID or an actual content object referencing to the document set
I should be able to create a document set thanks to its content type Id.
$listId = "171cdda2-0a71-4da1-84e0-6b1111ede026" $contentTypeId = "0x0120D520007A7337A21B195D4F81F0CD038E2E681404" Add-PnPDocumentSet -List $listId -Name "my-docset" -ContentType $contentTypeId
Add-PnPDocumentSet cmdlet returns an error:
Add-PnPDocumentSet
Add-PnPDocumentSet: Object reference not set to an instance of an object on server. The object is associated with method GetById.
But works like this: (By mentionning the content object directly, and not its ID)
$contentType = Get-PnPContentType -Identity "MyWonderfulCT" Add-PnPDocumentSet -List $list.Id -Name "a-docset" -ContentType $contentType
Connect-PnPOnline
Get-PnPFeature -Scope Site -Identity "3bae86a2-776d-499d-9db8-fa4cdc7884f8"
1.9.48 - nightly
The text was updated successfully, but these errors were encountered:
pnp#1710 - issue with Add-PnPDocumentSet
527088a
#1710 - issue with Add-PnPDocumentSet
fb2f57d
@ThomasContini - thanks for raising the issue. We managed to figure out and fix it :)
The fixed version will be available in tomorrow's nightly and afterwards !
Sorry, something went wrong.
Thanks a lot for the feedback! ;)
gautamdsheth
Successfully merging a pull request may close this issue.
Reporting an Issue or Missing Feature
Issue
Expected behavior
Following the current documentation here: https://pnp.github.io/powershell/cmdlets/Add-PnPDocumentSet.html
I should be able to create a document set thanks to its content type Id.
Actual behavior
Add-PnPDocumentSet
cmdlet returns an error:But works like this: (By mentionning the content object directly, and not its ID)
Steps to reproduce behavior
Connect-PnPOnline
Get-PnPFeature -Scope Site -Identity "3bae86a2-776d-499d-9db8-fa4cdc7884f8"
What is the version of the Cmdlet module you are running?
1.9.48 - nightly
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: