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.


This should give you the last item of the list:

 Get-PnPListItem -List "NieuweLijst" | select -Last 1
| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.