-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Add-PnPListItem doesn't work when paired with -Batch and trying to update users or group column with Id #2842
Comments
You need to specify the user values as |
Hi and thanks for your reply. This is exaclty what I'm doing and in this specific example I'm adding two ID's of groups and one user value. The very same call will work when the "-Batch" switch is removed. Kind regards, |
Fix #2842 - issue with Add-PnPListItem not able to set SP groups
I know it is closed, but I have the exact same issue using PnP.PowerShell 2.2.48. |
Reporting an Issue or Missing Feature
Reporting an issue
Expected behavior
Add-PnPListItem with -Batch switch to successfully update people or group column with Id's.
Removing batch works as expected.
Actual behavior
When trying to update people or group column in a batch, with user or group Id it fails.
Error message:
"You need to provide the user via it's principal when adding a list item or when updating it via one of the Update() methods. Updating using SystemUpdate() or SystemUpdateOverwriteVersion() do work with just the user id value"
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
ModuleType Version PreRelease Name PSEdition ExportedCommands
Manifest 1.12.0 PnP.PowerShell Core,Desk {Add-PnPAdaptiveScope…
Manifest 1.11.0 PnP.PowerShell Core,Desk {Add-PnPAdaptiveScope…
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: