Skip to main content

Products

Product catalog configuration is performed by setting the MED_Product_API_Name__c picklist on the CM_Default MCM Global Setting custom metadata type record. Always set CM_Product_API_name to MED_Product__c.

Product Catalog configuration in MCM Global Settings

Configure the product catalog

To configure the product catalog:

Note

Some of the steps below may have been completed during the installation process.

  1. In the Quick Find box in Setup, search for and select Custom Metadata Types.

  2. In the MCM Global Setting row, click Manage Records.

  3. In the CM_Default row, click Edit.

  4. For Product API Name, look for and select MED_Product__c.

  5. Click Save.

Add Product field to a layout

When the Product field is added to a layout, a lookup field displays on the layout and enables you to search for a product by name.

To add the Product field to a layout, create a CM_Layout_Field__mdt record that associates the Product field to a specific layout. Visit Layout configuration.

Add additional Fields to Product Lookup Search Results

When you search for a product via a lookup field on a layout, products that match the search criteria appear. Each result contains the name of the product and a subtitle. The subtitle is comprised of product metadata. The Lookup Subtitle Field Set Name field on the Document Products record on the Field custom metadata set controls metadata that displays in the subtitle. Visit Layout configuration.

To update the product subtitle:

  1. Navigate to the Field Sets tab on the MCM Product object.

    1. From the Object Manager tab in Setup, search for and select MCM Product.

    2. Click the Field Sets tab.

  2. Create a field set called CM_Lookup_Subtitle.

    1. Click New.

    2. Enter field set information.

    3. Click Save.

  3. Add or remove fields from the field set.

    • To add fields, drag and drop fields from the object palette into the In the Field Set container.

    • To remove fields, drag and drop fields from the In the Field Set container into the object palette.

    Note

    Komodo Health recommends adding a maximum of 3 fields to the CM_Lookup_Subtitle field set.

    Note

    Adding Id or Name to the CM_Lookup_Subtitle field set creates a runtime exception.

  4. Click Save.

  5. Navigate to the Document Products record on the Field custom metadata type.

    1. In the Quick Find box in Setup, search for and select Custom Metadata Types.

    2. In the Field row, click Manage Records.

    3. In the Document Products row, click Edit.

  6. Add a Lookup Subtitle Field Set Name.

    1. Enter CM_Lookup_Subtitle in the Lookup Subtitle Field Set Name field.

    2. Click Save.

Associate products with documents

From a document layout, you can associate a document with one or many products. Document/product relationships are stored on the CM_Document_Relationship__c custom object with the CM_Category__c and MED_Product__c fields. Visit Relationships.

Note

To associate products with documents, the Product field needs to be added to the appropriate document layouts. Visit Add Product field to a layout.

Product field on a document layout