Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / March 2008

Tip: Looking for answers? Try searching our database.

Outlook.ContactItem object properties available

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brad Covell - 05 Mar 2008 13:17 GMT
This is a development question, please let me know if this is the wrong
newsgroup for this.

I'm trying to set the Account Number, Active, and Type of Business
properties http://msdn2.microsoft.com/en-us/library/bb267853.aspx on an
Outlook.ContactItem. However, it doesn't appear these are valid properties
on the Outlook.ContactItem property. Can you advise how to set these as
documented?

I have also tried newAccount.ItemProperties["Account Number"].Value = "78";
and variations of this like AccountNumber, accountnumber, active, Active...

Outlook.ContactItem newAccount =
(Outlook.ContactItem)accounts.Items.Add("IPM.Contact.BCM.Account");

newAccount.FullName = "ABC Company"; //works

newAccount.FileAs = "ACB Company"; //works

newAccount.AccountNumber = "78";  //doesn't work,
even though it's documented that this should work, same thing for Active and
Type of Business

newAccount.OfficeLocation = "Michigan"; //works

newAccount.Save();

Thanks
Brad
Ken Slovak - [MVP - Outlook] - 05 Mar 2008 13:57 GMT
Wrong group, you want to post programming questions in a group that has
"program" in it. For BCM, which most of us know very little about, you
should post in a BCM group.

Those properties will only be there if you have BCM installed and you open a
BCM contact item or one that has the same MessageClass as BCM uses. That
means the custom form must be published on your computer in one of the form
libraries (Personal, Organizational, folder).

If those conditions are met you would use the UserProperties collection for
those properties:

item.UserProperties["AccountNumber"] = "78";

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> This is a development question, please let me know if this is the wrong
> newsgroup for this.
[quoted text clipped - 26 lines]
> Thanks
> Brad
Brad Covell - 05 Mar 2008 14:42 GMT
Ken,

Thanks for the info. I did post it in the BCM group but then thought about
it and the underlying object is an Outlook.ContactItem so thought I would
try this group. Either way, thanks for the help.

Brad

> Wrong group, you want to post programming questions in a group that has
> "program" in it. For BCM, which most of us know very little about, you
[quoted text clipped - 40 lines]
>> Thanks
>> Brad

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.