grahamr975 / EWS-Office365-Contact-Sync

Uses Exchange Web Services to synchronize a Global Address List in Office 365 to a user's mailbox
MIT License
96 stars 21 forks source link

Request: Validation on Phone number #5

Closed Jcodedk closed 4 years ago

Jcodedk commented 4 years ago

Hello

Possible to validate if the contact has a "Phone number" in any kind if yes SYNC to the contacts folder if no Throw.

So we don't end up with service accounts with no phone number

Jcodedk commented 4 years ago

Hello inside Sync-ContactList.ps1 I made following to accomplish my own enhancement image

grahamr975 commented 4 years ago

Nice job, Jcodedk. I like your initiative.

I've updated the script to include your feature using a slightly more efficient method. This was accomplished by modifying the Get-GALContacts.ps1 function. To use this new feature, please run EWSContactSync.ps1 with the RequirePhoneNumber switch.

image