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!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [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 ๐Ÿ˜‰