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);
});

}

No comments:

Post a Comment