Open gurdeepsira opened 6 years ago
have a look at this. there is an issue when using document sets with "modern" sharepoint websites. It may help (not sure)
*Basically you need to enable scripts on a website before using document sets https://github.com/SharePoint/PnP-Sites-Core/issues/1707
Take a look to the code I posted here so you can find out how to enable the docset along the site script with pnp-powershell
Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Expected behavior
Add-PnPContentTypeToDocumentSet -ContentType $ParentCT -DocumentSet $docSet
Where docset is the returned object from add-pnpdocumentset (get-pnpdocumentsettemplate gives an error).
This should append content type to document set.
Actual behavior
Instead, I get this error:
Add-PnPContentTypeToDocumentSet : Unknown Error
Not clear why
Steps to reproduce behavior
Run the cmdlet
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
2.28.18
How did you install the PnP-PowerShell Cmdlets?