Queries are not case sensitive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2024 11:22 PM
When I query the table, I can not be case-sensitive, how to solve it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2024 11:39 PM
Hi @HUANGCONG,
please check below link:
https://www.servicenow.com/community/developer-forum/case-insensitive-glide-record-query/m-p/1461008
Thank you, please make helpful if you accept the solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2024 11:41 PM
Hi there,
Can you be more specific? How do you query the table? Something manual? Something scripted? Something else? Can you also give an example?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2024 11:43 PM
Hi,
That's correct. GlideRecord query is not case sensitive.
You will have to do some workaround to get records that match on case formatting.
One option would be to use the GlideFilter API
Or just loop through all records that match and do a simple string comparison on each record to see if the case matches also.