Format Data Returned from Get-PnPListItem

If you have ever used the SharePoint PnP PowerShell Cmdlets you know that the data returned from the list is not done in the cleanest manor. It is returned as a hashtable and it includes all the internal columns. So, I created a function that will convert this hashtable to a standard PowerShell object and only return the columns you really care about. These are the custom columns you’ve added and some of the common ones like title, modified and created date, as well as the author and last editor.

To run this, all you have to do is pass the name of the list and the returned data from the Get-PnPListItem command.


Leave a Reply


We use cookies to ensure the best possible experience on our website. Detailed information on the use of cookies on this site is provided in our Privacy and Cookie Policy. Further instruction on how to disable our cookies can be found there.