Episode 18 - initialize() vs newRecord() in ServiceNow

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

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

  • @JohnCaruso
    @JohnCaruso 5 лет назад +2

    I believe State gets set to 0 (for initialize) since the field type is integer.

    • @goranlundqvist2976
      @goranlundqvist2976  5 лет назад

      Ha, then I was right in the video, I just thought it was a choice or maybe a string field. I never actually looked at what type it is =)

  • @dogeaz
    @dogeaz 2 года назад

    Very useful :D. Thanks for sharing :)

  • @anandlall5282
    @anandlall5282 3 года назад

    awesome explanation

  • @ih8people
    @ih8people 2 года назад

    Zoom in VS Code is under *View > Appearance.* Alternatively, Ctrl+= and Ctrl+- zoom in and out respectively. Ctrl+Num0 resets the zoom level

  • @lollinogaming1086
    @lollinogaming1086 3 года назад

    Actually i don't understand so much the difference because when you use initialize and then insert it will be inserted a record with default values as newRecord. The only difference is that newRecord has the default values in the glide record before insert. It's just this. Is that correct no?

  • @dhruvgupta6822
    @dhruvgupta6822 5 лет назад

    State is of type int and is initialised with 0. Great tutorial

    • @EthanDyTioco
      @EthanDyTioco 3 года назад

      (I know I'm adding to a 2 year old comment, but alas I'll chance it)
      Would you happen to know / point me to the direction of why State is an int field instead of a string? It would seem that as more custom states get added, it would just become convoluted to keep track of things.
      Hm, maybe then the impetus would be on the developers to not go wild with their custom states. What are your thoughts?