Forum Discussion
Change the value of Built-in columns Modified and Modified by
- May 25, 2023
danbmunoz These are SharePoint default columns which cannot be changed using SharePoint user interface.
But, you can update it easily using PnP PowerShell like:
Set-PnPListItem -List "My List" -Identity 1 -Values @{"Editor"="email address removed for privacy reasons"} -UpdateType UpdateOverwriteVersion
Also, going forward whoever will be adding new list items will be shown in Created By (Author) column and the user who modifies the list item will be shown in Modified By (Editor) column automatically in the list when they will start using it.
Author and Editor are internal names of Created By and Modified By fields respectively. Those are required to use in the PnP PowerShell for changing values.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
danbmunoz Try using this:
Set-PnPListItem -List "My List" -Identity 1 -Values @{"Editor"="<email address>"; "Modified"="2023-05-26T10:44:00"} -UpdateType UpdateOverwriteVersion
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- ganeshsanapMay 31, 2023MVP
danbmunoz Why don't you hide those columns from the list view if you don't want to show them while demo?
Follow this documentation: Show or hide columns in a list or library
Please consider giving a Like if my post helped you in any way.