I have a rich text field in my user defined template and I want to replace the source value of the rich text field. Below is my query where I'm able to read Name
, type
etc, however $_.source
is something which returns nothing though the source value still exists. Any help please.
$targetTemplate = Get-Item 'master:/sitecore/templates/User Defined/Common/Data';
$templateFilter = Get-Item "master:/sitecore/templates/System/Templates/Template Field";
Get-ChildItem $targetTemplate.FullPath -recurse
| Where-Object { $_.TemplateName -eq $templateFilter.Name -and $_.type -eq 'Rich Text'}
| ForEach-Object {
$($_.source)
#$_.Name
#$_.Type
}