Accessing the Master Product List

Outlook Developer Reference
Accessing the Master Product List

You can access master product list elements programmatically by inserting the approprate set or get call in your application. Use the XML format defined in the next section in place of XMLstring.

To set and get the master product list from a C# application:

  string XMLString = "..." // Set this to the desired value in the XML format shown below;

bcmRootFolder.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x6620001f", XMLstring);

XMLString = bcmRootFolder.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x6620001f").ToString();

Where bcmRootFolder is:

  Folder bcmRootFolder = (Folder)folders["Business Contact Manager"]; 

To set and get the master product list from a Visual Basic for Applications (VBA) application:

  XMLString = "..." 'Set this to the desired value in the XML format shown below

bcmRootFolder.PropertyAccessor.SetProperty "http://schemas.microsoft.com/mapi/proptag/0x6620001f", XMLString

XMLString = bcmRootFolder.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x6620001f")

Where bcmRootFolder is:

  Set bcmRootFolder = olFolders("Business Contact Manager") 

XML Format

The following code shows the XML format of the master product list.

  <ArrayOfBCMMasterProduct xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BCMMasterProduct>
    <Guid>8e08d330-1d5b-419a-b87e-1a5c9a062c24</Guid> 
    <Name>product1</Name> 
    <Description>description of product1</Description> 
    <PurchasePrice>10.0000</PurchasePrice> 
    <UnitPrice>10.0000</UnitPrice> 
    <Taxable>true</Taxable> 
    <DefaultQuantity>1.0000</DefaultQuantity> 
    <IsAcct>false</IsAcct> 
  </BCMMasterProduct>
</ArrayOfBCMMasterProduct>

See Also

Welcome to the Business Contact Manager for Outlook Developer Guide | Office Developer Center: Outlook 2007