Knowledge Contextual Search not showing the selected products' Knowledge Articles
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 03:45 AM - edited 01-05-2024 03:46 AM
Knowledge Contextual Search not showing the selected products' Knowledge Articles. It's showing as undefined.
Script inside Select Products:
(function execute() {
var options = []; // add options here...
var prd = new global.VirtualAgentUtils().getSoldProductsName();
prd = prd.split(',');
for(var i = 0;i<prd.length;i++)
{
if(prd[i] != 'Other')
{
options.push(
{ 'Value': prd[i],
'label': prd[i],
'render_style': 'data'
}
);
}
}
return options;
})()
Same input variable, I'm passing this in the OOTB contextual Search.
0 REPLIES 0