Re: Outlook Contacts Folder - Backup & Restore

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dmitry Streblechenko (dmitry_at_dimastr.com)
Date: 03/01/05


Date: Tue, 1 Mar 2005 13:39:40 -0700

Do you remember to treat the named properties corectly
(GetNamesFromIDs/GetIDsFromNames) since you are reading from one store and
restroring to another one?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Dakota Ridge" <DakotaRidge@discussions.microsoft.com> wrote in message
news:FFC3D2CE-22A7-4536-9A64-3FEDB66CE186@microsoft.com...
> I'm doing a backup of all Outlook contents, but it's a selective backup so
> it's slightly more complex than just dumping the .PST file then copying it
> back. Everything works perfectly except contacts. Backing up, I'm
> getting a
> list of 45 properties from each contact entry. 20 of them come from
> Exchange
> and most of those are undocumented. Among the ones that are documented,
> PR_EMAIL_ADDRESS is not listed; no returned property lists the email
> address.
> On restore, I'm creating a new message then assigning all the props to it
> that were backed up, excluding the obvious troublemakers like PR_ENTRYID,
> etc. that are assigned when the message is created. Only the display name
> is
> backed up; when restored, it shows as a completely blank entry in the
> contacts folder; open that in a new window and I only get the display
> name.
>
> The entire restore is being done into the default profile but a new store
> is
> being created because I want the restore to be a new root entry in
> Outlook.
> Nowhere else am I having any problems - including restoring 3 deep
> embedded
> messages.
>
> If PR_MESSAGE_CLASS IPM.Contact doesn't have any inherent links or
> reliances
> on the address book, then the problem is that I'm not getting all the
> props
> out of each entry that's being backed up from the contacts folder. Again,
> the email address specifically is suspiciously absent from each entry, and
> I've tried several ways (including unrestricted property retrievals) of
> doing
> this. I just can't seem to get the info out of the contact entries.
>
> I've been fighting this problem for more than 80 work hours and nobody
> seems
> to know anything about what could be wrong - most people just back up the
> .PST file which requires no effective knowledge of MAPI. The current
> method
> I'm using is to OpenEntry on each contacts folder entry, then GetPropsList
> on
> that. Still no email addresses or any other info besides the display
> name -
> which is repeated 3 times in PR_SUBJECT, etc.
>
> At this point I'm open to ANY suggestions.... thanks in advance.


Quantcast