I have a requirement to display just 1 latest SharePoint list item from a different list in a form. I believe i can use PNP but don’t really how it can be used. I appreciate if you can give me steps and code is even better.
Dear @coresoul,
A code will be like this:
sp.web.lists.getByTitle("RelatedList").items.get().then(function(items) {
console.log(items[items.length-1]);
});