Sunday, 17 March 2019

spfx pnp create site content type



private CreateContentType():void
{
pnp.sp.site.rootWeb.contentTypes.add("CustomContentType","CustomContentType")
.then(function(response){
console.log("New Content Type created!");
}).catch(function(exception)
{
alert("Something went wrong :"+exception);
});
}

No comments:

Post a Comment