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

Can't update contact extended properties #34

Closed mgeranimus closed 3 years ago

mgeranimus commented 3 years ago

tried to change code to GetGALcontacts.ps1

$ContactList += Get-Contact | Select-Object DisplayName,FirstName,LastName,Title,Company,Department,WindowsEmailAddress,Phone,Country,City,Street

Outlook have these rows which i would like to update, how it can be achieved ? thanks

Business Address Street: 
Business Address City: 
Business Address Postal Code: 
Business Address Country/Region: 

EDIT 2021-02-13 16:00: Outlook mobile shows only City property, there is no problem if we could enable data import from only City property. So then i could update all contact with all address properties in one line and i think it is a good solution and less hardwork to update all these code lines.

maybe in the future release there will be a switch to enable extended properties like Photo,Country,City,Street,Department ??

Also i checked all yours PS modules and i see that all extended properties are written with such variables Photo,Country,City,Address,Department and a lot more.. more than 20.

I like to test things, if there is something i could try to do it myself let me know where i need to update powershell code to have such properties included while importing data to all employee Contacts folder because in some code if i write these variables like previous are written in some format i get an error about bad object contruction... so i think these information must be updated not just in one file but also on others...

mgeranimus commented 3 years ago

Succcesfuly found where need to enable extended properties, so enabled them and updated in 3 files code to update or create contacts with needed properties like City, Website, Notes, Photo. Yes photo is also updating and it works fast. Thanks for your hard work, dedicated time to create this very business needed solution. I can confirm if created Contacts in different folder Outlook mobile not seeing any contacts but Gmail on android see it like apple iOS with mail app. Thanks ! Closing ticket