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

ServiceNow

90 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
3
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

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!

top 2 comments
sorted by: hot top controversial new old
[โ€“] sidetrak 2 points 1 year ago (1 children)

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.

[โ€“] [email protected] 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 ๐Ÿ˜‰

load more comments
view more: next โ€บ