convert to lower case
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2017 07:45 AM
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
Labels:
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2017 09:42 AM
i want the user table fields value also to be in lower case as another_variable is also in lower case
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2017 09:45 AM
- as others have said, "first_name" is in lower case anyway, so no need to apply this method
ohk thanks got it.