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";
"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
>
>
>