I have 400 product items. Previously, we have a common thumbnail image for all products. Now, I added a new image field (thumbnail image), all products I need to assign a common specific thumbnail image.
I wrote PowerShell script but it's not working
$thumbnailImage = Get-Item -Path 'master:\sitecore\media library\xyz\pqr\mno\infotumbnail410PD1'
$itemPath= Get-Item -Path 'master:\sitecore\content\sites\abc'
$itemPath.Editing.BeginEdit()
[Sitecore.Data.Fields.ImageField]$fieldValueLink = $itemPath["Product Image"]
$fieldValueLink= $thumbnailImage
$itemPath.Editing.EndEdit();
Please suggest me on the same.
Thanks,