Queries are not case sensitive

HUANGCONG
Tera Contributor

When I query the table, I can not be case-sensitive, how to solve it

3 REPLIES 3

Yashsvi
Kilo Sage

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 Roethof
Tera Patron
Tera Patron

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

LinkedIn

OlaN
Giga Sage
Giga Sage

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.