Forum Discussion
Florent SEGUI
Apr 06, 2017Copper Contributor
Automatic Data import
Hello, I'm putting up in place a sharepoint site (using Sharepoint Online) for my company. I'd like to create an Infopath form that'll retrieve datas from a sharepoint list (customers list). I'...
Your script will work for simple text fields but what if the SharePoint fields are of a diffferent type.
Also using Add-PnPListItem and Set-PnPListItem and Get-PnPListItem will be better.
Also you would need to handle things like "the item already exists"....
Manidurai Mohanamariappan
Apr 06, 2017Iron Contributor
Hi pieter,
thanks for info, i already tried with Add-PnPListItem but it's make trobule so that i used csom within pnp script .
- Apr 06, 2017
Use Add-PnPListItem without the Value parameter. Then use Set-PnPListItem to set the fields. This is a known issue.
https://github.com/SharePoint/PnP-PowerShell/issues/778