Outlook automation problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Outlook automation problem

  1. #1
    Eric Guest

    Outlook automation problem


    Set c = ol.CreateItem(olContactItem)
    c.MessageClass = "IPM.Contact.CustomersContact"
    c.UserProperties.Find("MyField") = "test"
    c.Save

    In my customized form called "CustomersContact" I have a field called "MyField"
    but I'm not able to access this field...

    Someone has an idea?

    Thanks

    Eric


  2. #2
    Merijn Boom Guest

    Re: Outlook automation problem

    It's quite some time ago I worked with outlook vbscript and I remember there
    where some problemns witj find the way you want to use it.

    I think you must be able to set the field by the command
    c.userproperties("MyField")="Test" if not you could also try the next code
    to see if MyField is in the userproperties
    for each userprop in c.userproperties
    debug.print userprop.name
    next

    good luck,

    --
    Merijn Boom
    Senior Developer
    Con-X-Com
    Connecting Computers


    "Eric" <ericxbenoit@hotmail.com> schreef in bericht
    news:3d5bf617$1@10.1.10.29...
    >
    > Set c = ol.CreateItem(olContactItem)
    > c.MessageClass = "IPM.Contact.CustomersContact"
    > c.UserProperties.Find("MyField") = "test"
    > c.Save
    >
    > In my customized form called "CustomersContact" I have a field called

    "MyField"
    > but I'm not able to access this field...
    >
    > Someone has an idea?
    >
    > Thanks
    >
    > Eric
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center