ServiceNow Developer - Database Query Demonstration

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 5

  • @ivancuervo777
    @ivancuervo777 6 місяців тому

    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 7 місяців тому +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 7 місяців тому +1

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

    • @parinose6163
      @parinose6163 7 місяців тому

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

    • @parinose6163
      @parinose6163 7 місяців тому

      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!