Programmatically updating Outlook
Discussion
I'm writing app which will contain contacts - these will originate from Outlook contacts and this is fine - pulling contacts from is not an issue.
If a contact is changed within the app there will be an option to update outlook contacts.
I can not find anyway of uniquely identifying a contact that comes from outlook. It appears that when updating a contact I can't pull a contact from outlook based on say a unique id or key but have to loop through all of them until I get a match on e.g surname, first name.
This is obviously open to error, so my question is, does anyone know a way of uniquely identifying an Outlook contact?
Cheers
Paul
If a contact is changed within the app there will be an option to update outlook contacts.
I can not find anyway of uniquely identifying a contact that comes from outlook. It appears that when updating a contact I can't pull a contact from outlook based on say a unique id or key but have to loop through all of them until I get a match on e.g surname, first name.
This is obviously open to error, so my question is, does anyone know a way of uniquely identifying an Outlook contact?
Cheers
Paul
The Name and Address properties of an AddressEntry object are updateable.
The AddressEntry has a read-only ID property, so it should just be a case of you managing the correlation between the list of contacts in your app and the IDs of the AddressEntry items in the AddressEntries collection (which in itself is a property of Outlook's AddressList class).
The AddressEntry has a read-only ID property, so it should just be a case of you managing the correlation between the list of contacts in your app and the IDs of the AddressEntry items in the AddressEntries collection (which in itself is a property of Outlook's AddressList class).
pdV6 said:
The Name and Address properties of an AddressEntry object are updateable.
The AddressEntry has a read-only ID property, so it should just be a case of you managing the correlation between the list of contacts in your app and the IDs of the AddressEntry items in the AddressEntries collection (which in itself is a property of Outlook's AddressList class).
I think that is exactly what I'm looking for
Cheers
Paul
Tripps said:
Out of curiosity, have you done anything to get past the address book protection dialog, or do you just allow access from your application for long enough to get the job done?
I'd be interested in that, too.
Not sure if I'd be able to implement anything, though, as my app needs to be OL version independent and backwards compatible to OL98, which doesn't have this "feature"...
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



