Tuesday, 19 March 2019

spfx pnp orderby sharepoint list item




How to orderBy SPList Item using pnp


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

No comments:

Post a Comment