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.

Genius Results is not loading the Order Guide a form.

Rhonda9
Tera Expert

Hello,

I have run into an issue after in the Employee Center with an Order Guide not being retrieved in the search results as a form.  How can I change this?  It is pointing the sc_cat_item table in the url instead of sc_cat_item_guide.  

I tried creating a AI Search Genius Result Configuration pointing to the Order Guide table but its still pulling up in the wrong url.   What can I do to resolve this? 

 

here is the code

 

function process(context) {
    var answer = new sn_ais.GeniusResultAnswer();

    answer.setTable('sc_cat_item_guide');
    answer.setSearchPhrase(context.getOriginalSearchPhrase());
    answer.setEncodedQuery("sys_class_name!=std_change_record_producer");
    answer.setSearchLimit(3);
    answer.searchTitleOnly(true);
    answer.addSearchAttribute("geniusResultSearchMode", ["custom"]);

    return answer;
}
1 REPLY 1

DenysM_
Tera Contributor

Hi Rhonda,

 

We had the same issue, which we were able to resolve by creating a sys_property record:

- Name: "glide.search.evam.use_legacy_template_generation"

- Type: "true | false"

- Value: "true"

 

In KB1949808 it is mentioned that this system property should be removed after upgrading to Xanadu Patch 7+ / Yokohama Patch 1+. However, we have just upgraded to the Xanadu Patch 7a and this issue still exists, so we keep this system property set to true.