Forum Discussion

HemachandraP's avatar
HemachandraP
Copper Contributor
Dec 23, 2019

How to get Updated list properties using PnP JS in SharePoint online.

when I try to get the latest list properties I am not getting latest properties like change token, ItemsCount, LastItemDeletedDate. When I use open developer tools getting the actual result. Here is my code

$pnp.sp.web.lists.getByTitle('listname').get().then(function(items) {
console.log(items.ItemCount);
});

1 Reply

  • HemachandraP 

    I am having the same problem - getting wrong result when trying to get number of items in the list.

    Any resolutions to this?

     

    Regards

    Leif

Resources