• Subject: Re: Outlook.ContactItem object properties available
  • Author: Brad Covell
  • Date: 05 Mar
  • References: 1 2
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

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:O8gWVjsfIHA.484@TK2MSFTNGP06.phx.gbl...
> 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";
>
> --
> 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
>
>
> "Brad Covell" <brad.covell@vai.org> wrote in message
> news:%236GWPNsfIHA.2540@TK2MSFTNGP05.phx.gbl...
>> 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
>>
>>
>>
>
05 MarOutlook.ContactItem object properties available.Brad Covell
05 Mar\ Re: Outlook.ContactItem object properties available.Ken Slovak - [MVP - O...
05 Mar   \ Re: Outlook.ContactItem object properties available.Brad Covell
All times are in (US) Eastern Daylight Time (GMT -4:00)