Hello,
Could you please provide some guidance on how I could strip a contact object's phone/mobile number in Powershell EWS? Setting it to $null does not work. I understand that the BusinessPhone/MobilePhone is an extended property and that there is a special way it has to be removed. I tried going through the EWS extended property list documentation, but become somewhat lost.
See below for what I'm looking for. Any help would be greatly appreciated.
if ($BusinssPhone -ne "")
{
$Contact.PhoneNumbers[[Microsoft.Exchange.WebServices.Data.PhoneNumberKey]::BusinessPhone] = $BusinssPhone
} else {
$Contact.PhoneNumbers[[Microsoft.Exchange.WebServices.Data.PhoneNumberKey]::BusinessPhone] = $NULL
}