How to sync MySQL contacts with Microsoft Exchange

1149570 pts.
Tags:
Microsoft Exchange
MySQL
PHP
In our PHP web application, we have a MySQL contacts table. It's integrated with the application so it allows you to add a contact, edit, etc. But it's currently self-contained. Our organization would like to integrate it with Microsoft Exchange but we've run into a few problems communicating and syncing with Exchange. Would anyone know where to start with the process? Thanks so much!
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

The build-in way to sync items is via function called SyncFolderItems. Basically to Exchange everything, including contacts is a folder, so you’ll just pass CONTACTS as DistinguishedFolderId in your sync request.

The sync works by downloading all the items for given account in batches of max 512 elements and after each batch it gives you SyncState as a reference point for Exchange to know where you left off. So it gives you ability to do incremental sync.

Now, that’s one way of course, meaning Exchange -> Your DB. The other way it around you should preform atomic updates/request – the moment you change/add/delete item form your db you should issue adequate request to Exchange server to keep data in sync, else it’ll be overwritten on your next SyncFolderItems.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: