Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

convert to lower case

joshishree
Kilo Contributor

var gr = new GlideRecord('sys_user');

gr.addQuery('first_name.toLowerCase()',another_variable);

gr.addQuery('last_name.toLowerCase()',lastnewname);

gr.query();

if(gr.next())

{

}

here another_variable and lastnewname are in lower case

I want the table fields also to be in lower case is it possible and how to do it

6 REPLIES 6

i want the user table fields value also to be in lower case as another_variable is also in lower case


  1. as others have said, "first_name" is in lower case anyway, so no need to apply this method


ohk thanks got it.