What are "KB", "people" or "catalog" prefixes in the search results?

shingo osaka1
Tera Contributor

I looked at the search results using the virtual agent topic block "ai search".

 

The search results are prefixed with table name abbreviations such as "KB", "catalog", "people", and so on.

What is this?

shingoosaka1_0-1690473352114.png

 

The incident table now also appears in the search results, but the incident results do not show "INC".
How can I make it show up as "INC"?

 

shingoosaka1_2-1690473492662.png

 

5 REPLIES 5

Shamus Mulhall
ServiceNow Employee
ServiceNow Employee

Hi @shingo osaka1 the prefix for each of the content types are coming from the EVAM configuration.

 

For example if you take a look at the EVAM specifically the view config and then View Template for the OOTB Virtual Agent People Search Template you will see the prefix populated as shown below in the JSON.  This will be true for KB and Catalog as well.

 

{
  "component": "sn-va-genius-person-card",
  "staticValues": {
    "fieldLabel1": {
      "translatable": true,
      "key": "Email"
    },
    "fieldLabel2": {
      "translatable": true,
      "key": "Phone"
    },
    "cardName": {
      "translatable": false,
      "key": "PersonCard"
    },
    "prefix": {
      "translatable": true,
      "key": "(People)"
    }
  },
  "mappings": {
    "header": "name",
    "avatar": "avatar",
    "title": "name",
    "identifier": "location",
    "primaryDescription": "title",
    "secondaryDescription": "department",
    "fieldValue1": "email",
    "fieldValue2": "mobile_phone"
  },
  "actionMappings": {
    "actions": [
      "va_viewProfile"
    ]
  }
}

 

Jiri K
Tera Contributor

Hello @Shamus Mulhall  thank you so much for this insight! 

 

We have the same requirement as Shingo Osaka1, and would like to remove/update the "(KB)" prefix in all the search results.

How can we do that as this template has a read-only protection policy? We can make a duplicate, but how do we disable the original one or force it to use our update template? 

 

Remove KB prefix.png


Any insight would be greatly appreciated. 

Many thanks!

Hello @Jiri K  and @Shamus Mulhall 
I have the exact same problem to solve for my customer, 

Did any one of you found the solution to this?
Like can I create a new one and how can I tag to my custom search application? if yes, Can pls lay the steps here?

Hello @SaurabhGidwani,

Yes I managed to solve it in the end! I had to lookup my own notes, please find the steps below. 

 

 

1. Go to View Template and find the Prefix: sys_ux_composite_data_template

https://[your instance ULR]/now/nav/ui/classic/params/target/sys_ux_composite_data_template.do%3Fsys_id%3D0bf6e98d871635905573eb5e0ebb351d%26sysparm_record_target%3Dsys_ux_composite_data_template%26sysparm_record_row%3D1%26sysparm_record_rows%3D2%26sysparm_record_list%3DtemplateCONTAINS%2528kb%2529%255EORDERBYname

 

KB Prefix 1.png

 

 

2. Duplicate this EVAM View Template (but NOT via insert and Stay, but by creating a new one and copying the code), make your changes, and then reference the new one in the appropriate EVAM View Configuration:  View Template - JK Virtual Agent Knowledge Search Template

https://[your instance ULR]/now/nav/ui/classic/params/target/sys_ux_composite_data_template.do%3Fsys_id%3D993e0c55877bbd101ac5ec683cbb3565%26sysparm_view%3D%26sysparm_domain%3Dnull%26sysparm_domain_scope%3Dnull

 

KB Prefix 2.png

 

3. Use the new EVAM View Configuration:

https://[your instance ULR]/now/nav/ui/classic/params/target/sys_ux_composite_data_template_predicate.do%3Fsys_id%3Dd9e565be530020103296ddeeff7b12e9%26sysparm_view%3D%26sysparm_domain%3Dnull%26sysparm_domain_scope%3Dnull%26sysparm_record_row%3D33%26sysparm_record_rows%3D83%26sysparm_record_list%3DORDERBYorder

 

KB Prefix 3.png

 

I hope that helps!

Regards!