Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Aug 2002
    Location
    Half Moon Bay, California, USA
    Posts
    124
    Thanks
    1
    Thanked 0 Times in 0 Posts

    contact synchronization

    I use outlook 2000 on my desktop and laptop. I have successfully linked them on a network. Is there a quick and easy way to synchronize the contact list?
    Thank You,
    Terry

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: contact synchronization

    not any really good ways. you can copy the pst and use it on both machines or use an internet service, like yahoo or fusionone.

  3. #3
    2 Star Lounger
    Join Date
    Aug 2002
    Location
    Half Moon Bay, California, USA
    Posts
    124
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: contact synchronization

    That surprises me. i thought once I solved my network troubles this would be one of the benefits. Outlook does so many things that i couldn't care less about. i always thought updating the contact list would be high on most traveling businessman

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: contact synchronization

    Okay, this is not quick and easy to set up, but once set it up, it does seem to work reasonably quickly.

    This procedure has two contact folder names hardcoded into it. It compares the contents of the folders based on the FileAs field, and does the following:

    (1) If the contact exist in one folder and not the other, it copies it.
    (2) If the contact exists in both and the modification dates are the same, nothing changes.
    (3) If the contact exists in both and the modification dates are different, the earlier one is deleted and the later one copied into its place.

    The set-up step is to add a personal folders service for the .pst you want to sync with. Presumably this would be a different profile so that you would not encounter errors when you are off the network (or you could keep a copy locally and then replace it with the latest version before syncing). You will need to replace the placeholders PSTServiceName with the names you gave to them (see example attached). In my test case, they were "Personal Folders - MainInbox" and "Personal Folders - ClientArchive". (For the Contacts folders, I presumed they were at the top level of the .pst; if nested, you need to dig further into the folder objects, and I haven't explored that.)

    Sub SyncContacts()
    If MsgBox("Synchronize contacts?", vbQuestion + vbYesNo) <> vbYes Then Exit Sub
    Dim ContFold1 As MAPIFolder, ContFold2 As MAPIFolder 'contact folders
    Dim ContItem1 As ContactItem, ContItem2 As ContactItem 'contact items
    Dim intConts As Integer, intChgs As Integer
    Set ContFold1 = Application.GetNamespace("MAPI").Folders. _
    Item(PSTServiceName#1).Folders.Item(ContactsFolder#1)
    Set ContFold2 = Application.GetNamespace("MAPI").Folders. _
    Item(PSTServiceName#2).Folders.Item(ContactsFolder#2)
    For Each ContItem1 In ContFold1.Items
    intConts = intConts + 1
    Set ContItem2 = ContFold2.Items.Find("[FileAs] = """ & ContItem1.FileAs & """")
    If ContItem2 Is Nothing Then
    Set ContItem2 = ContItem1.Copy
    ContItem2.Move ContFold2
    intChgs = intChgs + 1
    Else
    If ContItem1.LastModificationTime > ContItem2.LastModificationTime Then
    ContItem2.Delete
    Set ContItem2 = ContItem1.Copy
    ContItem2.Move ContFold2
    intChgs = intChgs + 1
    End If
    End If
    Next
    'Now go the other way
    For Each ContItem2 In ContFold2.Items
    intConts = intConts + 1
    Set ContItem1 = ContFold1.Items.Find("[FileAs] = """ & ContItem2.FileAs & """")
    If ContItem1 Is Nothing Then
    Set ContItem1 = ContItem2.Copy
    ContItem1.Move ContFold1
    intChgs = intChgs + 1
    Else
    If ContItem2.LastModificationTime > ContItem1.LastModificationTime Then
    ContItem1.Delete
    Set ContItem1 = ContItem2.Copy
    ContItem1.Move ContFold1
    intChgs = intChgs + 1
    End If
    End If
    Next
    'done!
    MsgBox "Processed " & intConts & " contacts and made " & intChgs & " changes."
    End Sub

    Now, this would be much more slick with a nice dialog box to select from among the various Contacts folders accessible in the current Outlook namespace. But, as Palm user, I just can't justify spending the time to do that!
    Attached Images Attached Images

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: contact synchronization - uh oh

    If the FileAs field is not unique, this solution will erroneously compare each "Doe, John" in the first folder with only the first "Doe, John" in the second folder, and then repeat the error working in reverse. The results are unpredictable - but bad. Hopefully this is not an issue for you, as integrating the FindNext method into the compare/replace portion of the loop is beyond me at this hour.

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: contact synchronization

    there are solutions - intellisync software. it's included with handheld units (palms etc) but not with outlook.

    syncing seems to create a lot of problems. MS started to develop a solution but ended it after running into problems, most likely with controling duplicates. (as many palm and web sync users can attest to - even netfolders is not immune to that problem.)

    the next biggest problem is that when outlook has a pst open it's locked and trying to sync with a locked pst will either fail or cause problems on the other end, unless done correctly.

    on my home network, i use a batch to copy psts to a network location as the computers boot then hook into them if needed. each outlook had their own pst plus a copy of the one from the other computer from the past 24 hours. I don't need up to the minute accuracy and it works well. I tried netfolders and they were pretty stable using wgpo for the post office, but after a bad update that first duplicated all my calendar items then deleted every one, i stopped using it. having double psts was preferable to losing all my data. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •