Tuesday, 19 March 2019

spfx pnp select columns



How to get only selected columns using pnp


private GetSelectedColumn():void
{
pnp.sp.web.lists.getByTitle("Employee").items.select("Name","Id").get()
.then(function(response){
console.log(response);
}).catch(function(exception){
alert("Something went wrong :"+exception);
});
}

No comments:

Post a Comment