Outlook.ContactItem object properties available

B

Brad Covell

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
 
K

Ken Slovak - [MVP - Outlook]

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

Brad Covell

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 - said:
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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top