Set-PnPListItem Author and Editor update #1075
-
Hello, Even if this subject has already been discussed, I didn't find out a solution. My goal is to update the Editor and the Author of an document in a specific Sharepoint site. The fields are nevr updated Can you help me please? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I tried the code on a dev tenant both with only Author and Author and Editor, and it works fine. What are the value in $NewOwner variable? Is it an email on a valid user? |
Beta Was this translation helpful? Give feedback.
I tried the code on a dev tenant both with only Author and Author and Editor, and it works fine.
What are the value in $NewOwner variable? Is it an email on a valid user?
Does it work if you update other properties?
Where did you check the values? In the browser you need to check the values of "Modified By" and "Created By"