Results 1 to 3 of 3

Thread: Importing / Updating outlook contactitems

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    1

    Question Importing / Updating outlook contactitems

    Hi

    I have a script that imports contactitems from a txt file to a public folder in outlook. Right now I'm deleting all contacts and putting them in again, but I'm trying to find a solution to update existing items records insted.

    I'm doing a test on the item the the businesstelephonenumber: 75929900, but the script still write "ITEM NOT FOUND"

    Can anyone see the error?

    Best Regards,
    Kim

    sFilter = "[BusinessTelephoneNumber] = 75929900"
    wscript.echo sFilter
    Set CurrentFoundItem = contactFolder.Items.Find(sFilter)

    ' Create if new
    If TypeName(CurrentFoundItem) = "Nothing" Then
    wscript.echo "ITEM NOT FOUND"
    Else
    wscript.echo "ITEM FOUND"

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Importing / Updating outlook contactitems

    Do a wscript.echo of TypeName(CurrentFoundItem), it probably isn't Nothing.

    (The above is a valid usage of a double negative).

  3. #3
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Re: Importing / Updating outlook contactitems

    Could you please post the entire script?
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

Posting Permissions

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



Click Here to Expand Forum to Full Width