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...

Комментарии • 5

  • @ivancuervo777
    @ivancuervo777 3 месяца назад

    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!!! 😝

  • @parinose6163
    @parinose6163 4 месяца назад +1

    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!

    • @WillieWilliams-of4wo
      @WillieWilliams-of4wo 4 месяца назад +1

      You're missing "users.query(); after line 1.

    • @parinose6163
      @parinose6163 4 месяца назад

      @@WillieWilliams-of4wo Thx! I put this script:
      var users=new GlideRecord('sys_user');
      users.query();
      gs.info(users.getrowcount());
      Result: undefined script

    • @parinose6163
      @parinose6163 4 месяца назад

      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!