I have a column named: 10. London I need to update the value of this column using Powershell. My script works on columns that do not have a full stop (period) in the name "." The internalName does not work. How do I escape the full stop in the column name? I've tried variations e.g. $item["10'.'London'"]
foreach($item in $items){
%colValue = $item["Title"]
if (%colValue -eq "SomeText")
{
$item["10. London"] = "NewText"
$item.Update()
$List.Update()
}
}
$list.Fields.GetFieldByInternalName()and then there where you are updating items do$item[$field.ID] = "New Value"or something like that?