Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

display catalog item as well under Requested Item tab after enabling the AI search for next experien

Atheher Fathima
Mega Guru

Hi All,
i need some help related to Ai Search for next experience. I have enabled the AI search for next experience but i would like to add the cat_item to be visible under the requested items tab besides the state,requested for etc. I see there is a custom template created under table "sys_ux_composite_data_template" where i have modified the code.

 i have added this cat_item in the index source as well. is there anything else i need to do here?

{
    "component": "sn-search-result-evam-card",
    "staticValues": {
        "imageType": {
            "translatable": false,
            "key": "icon"
        },
        "icon": {
            "translatable": false,
            "key": "bundle-outline"
        },
        "textHeaderLabelOne": {
            "translatable": true,
            "key": "Requested Item"
        },
        "detailLabelOne": {
            "translatable": true,
            "key": "State:"
        },
        "detailLabelTwo": {
            "translatable": true,
            "key": "Stage:"
        },
        "detailLabelThree": {
            "translatable": true,
            "key": "Requested For:"
        },
        "detailLabelFour": {
            "translatable": true,
            "key": "Opened By:"
        },
        "detailLabelFive": {
            "translatable": true,
            "key": "Opened:"
        },
         "detailLabelSix": {
            "translatable": true,
            "key": "Catalog Item:"
        },
        "detailLabelSeparator": {
            "translatable": false,
            "key": "|"
        },
        "detailPosition": {
            "translatable": false,
            "key": "above"
        },
        "requireLabelAndValue": {
            "translatable": false,
            "key": "true"
        }
    },
    "mappings": {
        "textHeaderLabelTwo": "number",
        "detailValueOne": "state",
        "detailValueTwo": "stage", 
        "detailValueThree": "requested_for.name", 
        "detailValueFour": "sys_created_by", 
        "detailValueFive": "sys_created_on", 
        "detailValueSix": "cat_item",
        "titleLabel": "ai_search_teaser_title",
        "attachments": "child_docs"
    },
    "actionMappings": {
        "clickAction": "navigation"
    }
}
0 REPLIES 0