HR cases in portal search results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 05:17 AM
Hi experts,
we have created AI search source to display HR Case on the portal search results.
We also configured AI search result action to navigate to our ticket page but still cases are opening in Native UI.
How can we fix this issue.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 12:58 PM
Hi @si21 ,
follow below steps:
1. Navigate to:
AI Search > Search Result Actions
Find your HR Case Action and verify:
Action Type: Open URL
URL: It should direct to the Service Portal case page.
Example: /sp?id=ticket_page&table=sn_hr_core_case&sys_id=${sys_id}
- Ensure sys_id is dynamically replaced with the actual case ID.
Verify the AI Search Source
Go to:
AI Search > Search SourcesFind your HR Case Source and confirm:
Table: sn_hr_core_case
Result Action: The action should be assigned correctly.
3.Override Default Navigation Using an AI Search Script
If the issue persists, override the default navigation behavior via a Client Script:
Go to: System UI > Scripts - Background (for testing)
Run this test script:
function overrideCaseNavigation() {
var gr = new GlideRecord('sys_search_action');
gr.addQuery('table', 'sn_hr_core_case');
gr.query();
while (gr.next()) {
gr.url = '/sp?id=ticket_page&table=sn_hr_core_case&sys_id=${sys_id}';
gr.update();
}
}
overrideCaseNavigation();
If this solution helps you then, mark it as accepted solution ✔️ and give thumbs up 👍 !
Regards,
Pratik