I have this code below but it doesn't work. Is it possible to change a value of the column "Modified By" in a Sharepoint list with Powershell?
Set-PnPListItem -List "mylist" -Identity "1" -Values @{"Editor" = "[email protected]"}
Gr. P
I have this code below but it doesn't work. Is it possible to change a value of the column "Modified By" in a Sharepoint list with Powershell?
Set-PnPListItem -List "mylist" -Identity "1" -Values @{"Editor" = "[email protected]"}
Gr. P
Try this:
Set-PnPListItem -List "Demo List" -Identity 1 -Values @{"Editor"="[email protected]"} -UpdateType UpdateOverwriteVersion
-UpdateType
Specifies the update type to use when updating the list item. Possible values are "Update", "SystemUpdate", "UpdateOverwriteVersion".
Update
: Sets field values and creates a new version if versioning is enabled for the list
SystemUpdate
: Sets field values and does not create a new version. Any events on the list will trigger.
UpdateOverwriteVersion
: Sets field values and does not create a new version. No events on the list will trigger.
Please use /validateUpdateListItem for updating Modified By field in the Flow: