Case Study
Implementation of Autosuggest Search with API Integration in ServiceNow’s Employee Center Portal
Background:
A client approached us with a requirement to integrate an API to enable search suggestions on the EMPLOYEE CENTER portal in ServiceNow. The client wanted to display only the top 10 search results and redirect users to a results page where they could access relevant information related to their profile.
Problem Statement:
The client wanted to enable autosuggest search on the EMPLOYEE CENTER portal in ServiceNow. The challenge was to integrate the API and display only the top 10 search results while redirecting users to a relevant results page.
Solution:
To solve the problem, we developed a custom POST type REST Message call and tested it to ensure we got the correct response. Next, we created a scripted search source for the search bar widget in ServiceNow and set up the REST API call. We designed the system to trigger the API based on the search term entered in the search bar on the EMPLOYEE CENTER portal. We limited the display to only 10 results as autosuggestions of the search were displayed.
We then created a separate search source that would handle the submit action. On submitting, a new page would load displaying results related to that user’s profile, such as tickets they opened or knowledge articles they published. We cloned the out-of-the-box results page and added new filters to it. If the user clicked on any of the hyperlinks, they would be redirected to the Unily tool's page.
The response body for the search string added would contain the full name of the user, a URL to their Unily profile, and their job title. We integrated this information into the result page.
Results:
The REST API integration with ServiceNow was successful, and we created custom Service Portal widgets and pages like the search bar and the results page. We were able to implement this solution seamlessly, and the integration with the Unily platform worked smoothly.
Conclusion:
In summary, we were able to create a custom solution to integrate the API and enable autosuggest search in ServiceNow's EMPLOYEE CENTER portal. The solution limited display to only the top 10 search results and redirected users to a relevant results page with custom filters. The client was pleased with the results, and the integration worked seamlessly.