Replies: 1 comment
-
Trying to update the
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi
This approach used to work just fine - example:
$updateListItem = @{}
$updateListItem["_ModerationStatus"] = 0
$updateListItem["Modified"] = $ModifiedDate
$item = Set-PnPListItem -List $list -Identity 4 -Values $updateListItem -SystemUpdate
However, we now see the error: You cannot change moderation status and set other item properties at that same time.
I'm trying to update both the approval status (to approve) whilst retaining the Modified Date on the list item - this is required for a migration script.
Based on my tests, this is no longer possible as if I update just the moderation status using -UpdateType SystemUpdate, then the Modified Date is change to Now.
Is it possible to update the moderation status, without changing the modified date?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions