Sunday, 17 March 2019

spfx delete list column using pnp

private DeleteSPListColumn():void
{

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

}

No comments:

Post a Comment