I have set a value in a
General link field in a Sitecore item using PowerShell. Here is the PowerShell script.
$item.Editing.BeginEdit() [Sitecore.Data.Fields.LinkField]$fieldValueLink = $Item.Fields[$templateField.DisplayName] $fieldValueLink.Text = "Link" $fieldValueLink.Title = "click on the link" $fieldValueLink.LinkType = "external" $fieldValueLink.Url = $itemRow.$fieldTrimmedValue $item[$templateField.DisplayName] = $fieldValueLink.Value; $item.Editing.EndEdit() | Out-Null
Now I want to set values into other field types like
DropList. For setting these field values I think I need to create Sitecore items using PowerShell and then assign them to the fields' values, But I don't know where to start and how to proceed.
Can anyone help me out with this?