: UI Builder Search Functionality Not Fetching Results with Client Parameter in Incident Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 02:31 AM
Hello ServiceNow Community,
I am currently working on UI Builder where I am implementing a search functionality using Client Parameters to filter data from the Incident table. I am using a edit filter condition inside Data Resource to fetch the records based on search input, but I am facing an issue where search results are not being fetched properly.
My Scenario:
I have applied the following search conditions in the Data Resource filter:
Additionally, I have also configured the Search event with the following steps:
Update Client Parameter:
@payload.searchTerm
Refresh Data Resource:
data.refreshData()
What is Working:
The state.searchTerm parameter is updating correctly (I verified it using console logs).
Data is visible when no filter is applied.
Manual search through the list in the backend shows that matching records exist.
What is Not Working:
When I perform the search using short_description or number, no results are returned.
Aggregation using GraphQL with the same conditions also returns zero counts.
My Questions:
What are the correct conditions for search functionality in UI Builder?
Is there any special configuration required to filter data using CONTAINS with Client Parameters?
Does GraphQL or Data Resource require any additional handlers to refresh search results properly?
Any help or guidance will be greatly appreciated!