I thought I’d share one of my favorite newish parts of ServiceNow: the GlideQuery class! It’s a modern replacement to the GlideRecord class for use in ServiceNow backend scripting based upon Functional Programming principles.

GlideQuery is IMO much easier to work with in many common use-cases, though many situations still where GlideRecord remains the superior choice. Nevertheless, I think you’ll enjoy using GlideQuery if you spend any considerable amount of time scripting on the platform!

  • sidetrak
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Nice! Thanks for sharing. There are always so many new things added to the platform but I get in my groove of using what I’ve used for years. This one will be helpful.

    • chaorace@lemmy.sdf.orgOPM
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Even if you take it slow at first, one thing I can immediately recommend is replacing GlideAggregate. GlideQuery is designed to be able to replace GlideAggregate, too, and GlideQuery’s aggregate methods are much less complicated to use by comparison. Total no-brainer for even the grooviest of developers 😉