This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Unable to Update Modified and Editor using PNP Powershell for Document Library #2911
Unanswered
SahithiYamasani
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.
-
When am trying to update Document File Name (FileLeafRef) and try to preserve modified and editor values . It is creating New Version and Changing Previous Editor value in Version History.
Below is the code I have used to Update
Set-PnPListItem -List $ListName -Identity $item.Id -Values @{"FileLeafRef" = $FileLeafRef ;"Status"= $Status } -SystemUpdate
Set-PnPListItem -List $ListName -Identity $Item.Id -Values @{"Modified"= $ModifiedOn;"Editor"= $UpdateUser.Email;}
Is there a way we can update these values without creating a new version - Kindly Help
Beta Was this translation helpful? Give feedback.
All reactions