1

I have created a SharePoint-environment and I use powershell to maintain my SharePoint. I use the Powershell module "Patterns and Practices PowerShell for SharePoint Online". I try to create a code to get the last line of a SharePoint list. Does someone know how to do that?

I don't get further than this:

$List = Get-PnPList -Identify "NieuweLijst"

Who can help me?

Thank you in advanced.

1
2

This should give you the last item of the list:

 Get-PnPListItem -List "NieuweLijst" | select -Last 1
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy