Hello Support,
We just determined this either did not work or stopped working.
$props = @("mailNickname", "mail")
$map =@{ "å"="a"; "ö"="o"; "ä"="a";"ü"="u"; "ñ"="n"; "é"="e"; "-"=""; "'"="" }
foreach ($prop in $props)
{
if ($Context.IsPropertyModified($prop))
{
$value = $Context.GetModifiedPropertyValue($prop)
foreach ($key in $map.Keys)
{
$value = $value.Replace($key, $map[$key])
}
$Context.SetModifiedPropertyValue($prop, $value)
$Context.LogMessage($prop + ": " + $value, "Information")
}
}
Please advise on how to get a successful script to remove these special characters.