3
submitted 1 year ago* (last edited 1 year ago) by chaorace to c/servicenow

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!

you are viewing a single comment's thread
view the rest of the comments
[-] sidetrak@sh.itjust.works 2 points 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 1 points 1 year ago* (last edited 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 ๐Ÿ˜‰

this post was submitted on 12 Jun 2023
3 points (100.0% liked)

ServiceNow

122 readers
2 users here now

A place for ServiceNow platform admins and developers.

Ask questions and show off your stuff!

founded 1 year ago
MODERATORS