SharePoint Online to Online Migration – PnP PowerShell Batch Update for System Fields #5259
Unanswered
I-BhushanSalunkhe
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.
-
We are performing a SharePoint Online to SharePoint Online migration using PnP PowerShell.
Due to new functional requirements, we redesigned the architecture:
New architecture
Existing architecture
We developed a PnP PowerShell script that:
CreatedAuthorModifiedEditorThe script works correctly when executed sequentially. However, due to the large data volume, the execution time is very long.
Attempt to Optimize Using Batch
To improve performance, we attempted to use batching:
Issue
Since batched operations are executed only when Invoke-PnPBatch is called, the items do not yet exist when Set-PnPListItem is queued. Therefore, we are unable to update the system fields in the same batch.
Question
What is the recommended approach to:
Created,Author,Modified,Editor)Any guidance or best practices for this scenario would be highly appreciated.
To know more about migration click here.
Beta Was this translation helpful? Give feedback.
All reactions