Forum Discussion
Anonymous
Mar 10, 2017Add-PnPListItem triggers an error when used with values
Hi folks, I'm new to SharePoint and developing for it so this could be a user error on my part but I'm really stuck and hope someone can help. I wrote a simple powershell script to connect to...
farhan faiz
Mar 23, 2017Copper Contributor
Read in another thread that if we add Contenttype attribute, it works fine.
Tried and it worked.
Add-PnPListItem -List $ImportStatusListName -Values $ItemPropertiesHT -ContentType "Item"
Sourece - https://github.com/SharePoint/PnP-PowerShell/issues/778