Relevant for you widget in ESC portal shows catalog items which are not part of configured catalogDescriptionIssue Description:Relevant for you widget in ESC portal shows catalog items which are not part of configured catalogSteps to Reproduce 1. Open this OOTB instance:https://demonightlytokyo.service-now.com/esc2. Notice some catalog items such as access are visible even though they are not the part of Human Resources Catalog which is the configured catalog.Expected behavior: Only configured catalog should be visible.Actual behavior: Looks like it is showing catalog item irrespective of catalogs.WorkaroundThe OOTB fix for this PRB would be available with Feb' 23 release. Workaround for this issue ------------------------------------- 1. Navigate to script include 'UserRecommendationUtilSNC' having sys_id-> '94d06ee7db3b04509dd29207db961953'. 2. Navigate to 'getCatalogItems' API. 3. Remove the code changes from line 219 to 221 i.e.: if (!gs.nil(catalogData.users) || !gs.nil(catalogData.recentActivityCutoffDate)) { var reqItems = this.getRequestItems(catalogData.users, catalogData.ignoredCatalogs, catalogData.catalogCount, catalogData.recentActivityCutoffDate, catalogData.taxonomyId); var recordProducers = this.getRecordProducers(catalogData.users, catalogData.ignoredCatalogs, catalogData.catalogCount, catalogData.recentActivityCutoffDate, catalogData.taxonomyId); 4. After removing the above mentioned code changes. Add the given below code in place of the removed code: // if there is no taxonomy assosiated then do not use m2m_connected_content if (!gs.nil(catalogData.users) || !gs.nil(catalogData.recentActivityCutoffDate) || !gs.nil(catalogData.taxonomyId)) { var portalCatalogs = []; if (gs.nil(catalogData.taxonomyId)) { portalCatalogs = $sp ? $sp.getCatalogs().value.split(',') : []; } var reqItems = this.getRequestItems(catalogData.users, catalogData.ignoredCatalogs, catalogData.catalogCount, catalogData.recentActivityCutoffDate, catalogData.taxonomyId, portalCatalogs); var recordProducers = this.getRecordProducers(catalogData.users, catalogData.ignoredCatalogs, catalogData.catalogCount, catalogData.recentActivityCutoffDate, catalogData.taxonomyId, portalCatalogs); 5. Search for given below code with if condition: if (!gs.nil(taxonomyId)) { catItemGr.addQuery('taxonomy_topic.taxonomy', taxonomyId); catItemGr.addQuery('taxonomy_topic.active', true); } 5. Add only else if part of code changes provided below: if (!gs.nil(taxonomyId)) { catItemGr.addQuery('taxonomy_topic.taxonomy', taxonomyId); catItemGr.addQuery('taxonomy_topic.active', true); } else if(portalCatalogs && portalCatalogs.length > 0) { var catalogsQuery = ''; portalCatalogs.forEach(function(catalog){ catalogsQuery = catalogsQuery + (catalogsQuery ? '^OR' : '') + 'sc_catalogsCONTAINS' + catalog ; }); catItemGr.addEncodedQuery(catalogsQuery); } Part-1 of the code changes are done. Part-2 : 1. Search for 'getRecordProducers' API, Inside API search for below code snippet: if (!gs.nil(taxonomyId)) { reqItems.addQuery('producer.taxonomy_topic.taxonomy', taxonomyId); reqItems.addQuery('producer.taxonomy_topic.active', true); } 2. Instead of above mentioned code snippet add the below mentioned code changes: if (!gs.nil(taxonomyId)) { reqItems.addQuery('producer.taxonomy_topic.taxonomy', taxonomyId); reqItems.addQuery('producer.taxonomy_topic.active', true); } else if(portalCatalogs && portalCatalogs.length > 0) { var catalogsQuery = ''; portalCatalogs.forEach(function(catalog){ catalogsQuery = catalogsQuery + (catalogsQuery ? '^OR' : '') + 'producer.sc_catalogsCONTAINS' + catalog ; }); reqItems.addEncodedQuery(catalogsQuery); } After doing all these changes. Save the file. and check if Recommended for you widget is loading fine. If anything is failing. revert the code changes and touch base with EX team for support. Related Problem: PRB1628199