ServiceNow Developer - Database Query Demonstration
HTML-код
- Опубликовано: 20 авг 2024
- Ever wonder what a ServiceNow developer does? One thing they do is query the database. In this video I demonstrate a GlideRecord query example in ServiceNow to query the database, pull back a list of records and display them on the screen.
-- LINKS --
Video Resources:
➤ servicenowsimp...
Hello Jeff, I have a Challenge for you...I am trying change the list of options in a select box that is withing a MRVS, but depending on a value selected on a select box that is outside the MRVS, of course this is related to a 'simple' catalog item, you help me out, I bring more subscribers!!! 😝
Hi Jeff! I do not get it ... What's wrong with my script? I have no results. I hoped to be as excited as you! Version : Washington patch1
Script:
var users=new GlideRecord('sys_user');
while (users.next()){
gs.info(users.getValue('first_name'));
}
Thx in advance!
You're missing "users.query(); after line 1.
@@WillieWilliams-of4wo Thx! I put this script:
var users=new GlideRecord('sys_user');
users.query();
gs.info(users.getrowcount());
Result: undefined script
I put this one :
var users=new GlideRecord('sys_user');
users.query();
gs.info(users.getRowCount());
result:627 The only diff. I see, it's the capital letter... So, it's case-sensitive! THX, anyway, for your reply!