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
.
Configure the product catalog
To configure the product catalog:
Note
Some of the steps below may have been completed during the installation process.
In the Quick Find box in Setup, search for and select Custom Metadata Types.
In the MCM Global Setting row, click Manage Records.
In the CM_Default row, click Edit.
For Product API Name, look for and select MED_Product__c.
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:
Navigate to the Field Sets tab on the MCM Product object.
From the Object Manager tab in Setup, search for and select MCM Product.
Click the Field Sets tab.
Create a field set called
CM_Lookup_Subtitle
.Click New.
Enter field set information.
Click Save.
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
orName
to theCM_Lookup_Subtitle
field set creates a runtime exception.Click Save.
Navigate to the Document Products record on the Field custom metadata type.
In the Quick Find box in Setup, search for and select Custom Metadata Types.
In the Field row, click Manage Records.
In the Document Products row, click Edit.
Add a Lookup Subtitle Field Set Name.
Enter
CM_Lookup_Subtitle
in the Lookup Subtitle Field Set Name field.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.