Skip to content

SharePoint.DefaultWebPart enum #418

Discussion options

You must be logged in to vote

I've actually figured this out.

I noticed the webpart ID was different on a doc library when I grabbed the metadata from the workbench to the id of the Doc library web part found from the AvailablePageComponents but it did match the PnP.Core.Model.SharePoint.DefaultWebPart.List enum (aka ID f92bf067-bc19-489e-a556-7fe95f508720). So changing to use this and it worked, and can now add a doc library web part to the Page. Awesome!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisforbesblogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant