Can any please explain me how to add multiple items to the multilist field. For me only last item is getting selected.
$item.Editing.BeginEdit()
$allItems = Get-ChildItem -Path '/sitecore/content/ListManagerTask' -Recurse
foreach($multilistItem in $allItems) { $item[$templateField.Name] += $multilistItem.ID; }
$item.Editing.EndEdit() | Out-Null`
I want to assign all items in $allItems
to multilist.