Created
February 17, 2023 15:44
-
-
Save michaellwest/203d113e48470b6ebec781871dd25e7c to your computer and use it in GitHub Desktop.
Reserialize Unicorm items using Sitecore PowerShell Extensions. Useful when fields are missing and need to be regenerated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$lines = @" | |
/sitecore/content/home | |
"@ | |
$paths = $lines.Split([Environment]::NewLine, [StringSplitOptions]::RemoveEmptyEntries) | |
foreach($path in $paths) { | |
Get-Item -Path ($path.Replace("/sitecore", "master:")) | Export-UnicornItem | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment