Attribute Metadata - ShowCode
showCode metadata is used with reference attributes. It can be used for fetching information (attribute value) from referred data cards to be added after the reference attribute value. The showCode metadata value must be one of the attribute codes in the referred template.
showCode metadata works as intended with single value reference attributes only.
showCode metadata affects the template information in two ways as follows:
- In data card view
showCodeconfiguration causes attribute values to be retrieved from the referred data card as illustrated in the following picture. (The layout for included values is the same as with Expand references automatically functionality.)
Data card withshowCodemetadata:
In the previous picture, theService Deskticket template includes aCustomerattribute that refers to a template calledPerson. The customer field of the data card represents the reference template's name together with specified (contact) person name (Person: Success Ltd./Baby Almira). The desired attribute value is fetched from the referred data card by configuring its attribute code in the reference attribute metadata asshowCodevalue. In this example configuration, the reference attribute included to the referrer data card isDepartment.When using the Expand references automatically functionality,
showCodemetadata can be used to limit which attributes are included. (By default,Expand references automaticallycauses all attributes to be included.) - In table search results,
showCodeincludes attribute values from the referred data card as illustrated in the following picture.showCodeattributes:
The search results table displays the included reference attribute value (Sales and marketing) together with the referred attribute value (Baby Almira).
The desired attribute value is fetched from the referred data cards by defining its attribute code in the referrer attribute metadata asshowCodevalue as illustrated in the picture below.
Denoting attribute metadata:
If you wish to include several attribute values, define eachshowCodevalue as a separate entry.
Denoting attribute metadata with multipleshowCodevalues: