Open davidsadmin opened 11 months ago
@davidsadmin
I've never tested this, but in theory, you should be able to modify the Set-EXCContactObject.ps1 & New-EXCContactObject.ps1 functions to set on the pager & fax on the contact. You'll of course need to pass the pager & fax from the GAL for each user into the script; I'm not sure if the ExchangeOnline "Get-user" command includes the pager. I'm pretty sure you should at least be able to get the fax this way though.
if ($PagerPhone -and $PagerPhone -ne "")
{
$Contact.PhoneNumbers[[Microsoft.Exchange.WebServices.Data.PhoneNumberKey]::Pager] = $Pager
}
if ($BusinessFax -and $BusinessFax -ne "")
{
$Contact.PhoneNumbers[[Microsoft.Exchange.WebServices.Data.PhoneNumberKey]::BusinessFax] = $BusinessFax
}
EWS Contact Phone Types Documentation: https://learn.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.phonenumberkey?view=exchange-ews-api
I've been trying to modify the modules in order to add FAX and Pager numbers to the created contacts, but I haven't been able to do it successfully.
Any tips? I tried modifying Get-GALContacts and Sync-ContactList as another issue post suggested to add the homephone, but it's not working for the FAX and pager fields.