Forum Discussion
HemachandraP
Dec 23, 2019Copper Contributor
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
- Leif FrederiksenBrass Contributor
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