Showing posts with label sharepoint framework add new columng using pnp. Show all posts
Showing posts with label sharepoint framework add new columng using pnp. Show all posts

Sunday, 17 March 2019

Add List Column using pnp


private AddSPListColumn():void
{

pnp.sp.web.lists.getByTitle("Test").fields.addText("EmployeeName")
.then(function(response){
console.log("New Column added!");
}).catch(function(exception)
{
alert("Something went wrong :"+exception);
});

}