Set-PnPListItem -UpdateType option "SystemUpdate" and "UpdateOverwriteVersion" behaviors are not match the document. #3859
Unanswered
yk-furukawa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, this is my first post.
Now I suspect the document is mis-described. But I'm not sure. What would be the expected behaviors?
On the document about Set-PnPListItem,
https://pnp.github.io/powershell/cmdlets/Set-PnPListItem.html
for -UpdateType option 'SystemUpdate', it described
"Sets field values and does not create a new version. Any events on the list will trigger. The "Modified By" and "Modified" fields not updated and can not be set." .
However a flow, which has ”When an item is created or modified” trigger, was not triggered when I excuted Set-PnPListItem cmdlets with -UpdateType "SystemUpdate".
For -UpdateType option 'UpdateOverwriteVersion', it described
"Sets field values and does not create a new version. No events on the list will trigger. The "Modified By" and "Modified" fields are not updated but can be set by passing the field values in the update. HINT: use 'Editor' to set the "Modified By" field.".
However a flow, which has ”When an item is created or modified” trigger, was triggered when I excuted Set-PnPListItem cmdlets with -UpdateType "UpdateOverwriteVersion". And the "Modified By" and "Modified" fields are always updated without explicitly setting the field values.
My environment is PowerShell 7.4.1 and PnP.PowerShell 2.4.0.
Beta Was this translation helpful? Give feedback.
All reactions