You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-UpdateType SystemUpdate: This parameter ensures that the update is applied to the existing version of the item without creating a new version. The event or workflow associated with the item is triggered, though.
107
107
108
108
109
+
<br/><br/><br/>
110
+
109
111
# Update batch items
110
112
111
113
If you need to update multiple list items in one go, you can do so by combining the `Set-PnPListItem` and `New-PnPBatch` cmdlets. Here's an example of how to batch update several items:
`Set-PnPListItem -List "Demo List" -Identity $item.Id -Values @{"Status"="Archived"; "Reviewed"="Yes"} -UpdateType SystemUpdate -Batch $batch`: For each item, this command updates the "Status" to "Archived" and the "Reviewed" field to "Yes," without changing the "Modified" date or creating a new version.
135
137
138
+
139
+
<br/><br/><br/>
140
+
141
+
# Set-PnPImageListItemColumn
142
+
Image column can be updated using `Set-PnPImageListItemColumn`. The cmdlet also takes [-UpdateType <UpdateType>] parameter.
143
+
144
+
145
+
### Example 1
146
+
Using the following example you can set the image value in the field without updating the Modified Date, the Modified By, or triggering a workflow.
Using the following example you can set the image value in the field and trigger the workflow or event associated with the list item. The Modified Date and the Modified By will not be updated.
Auditability: Be cautious when using this approach, as it overwrites the current version, potentially losing track of changes that might be important for auditing purposes.
169
+
145
170
User Awareness: Ensure that users are aware of when and why this method is used, as it deviates from the usual behavior of versioning in SharePoint.
0 commit comments