Comment
Garrett2
Tera Expert
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
08-09-2022
11:35 AM
If you're talking about the ServiceNow KBs, you can do this. In the view config just dot walk to knowledge base.icon under table fields
Then in the template make sure the knowledge base icon is mapped in the template. Here's an example of my template, but your requirements will vary.
EVAMs are very fickle and not well documented, but this can get you close.
{
"component": "sn-search-result-evam-card",
"staticValues": {
"imageType": {
"translatable": false,
"key": "image"
},
"icon": {
"translatable": false,
"key": "kb_knowledge_base.icon"
},
"textHeaderLabelOne": {
"translatable": true,
"key": "Article"
},
"detailLabelOne": {
"translatable": true,
"key": "Number:"
},
"detailLabelTwo": {
"translatable": true,
"key": "KB:"
},
"detailLabelThree": {
"translatable": true,
"key": "Category:"
},
"detailLabelFour": {
"translatable": true,
"key": "Updated:"
},
"detailLabelSeparator": {
"translatable": false,
"key": "|"
},
"requireLabelAndValue": {
"translatable": false,
"key": "true"
}
},
"mappings": {
"detailValueOne": "number",
"detailValueTwo": "kb_knowledge_base",
"detailValueThree": "kb_category",
"detailValueFour": "sys_updated_on",
"title": "ai_search_teaser_title",
"summary": "ai_search_teaser_text",
"ariaLabel": "short_description",
"imageURL": "kb_knowledge_base.icon"
},
"actionMappings": {
"clickAction": "navigation"
}
}