Looking for a Complete Guide to GlideRecord and GlideAggregate Methods in ServiceNow

Harshal G Patil
Tera Contributor

Hello Community Members,

I am learning ServiceNow scripting and want to develop a deep understanding of GlideRecord and GlideAggregate.

I am looking for reliable learning resources, documentation, or practical examples covering all important methods, including advanced methods and real-world use cases.

Specifically, I would like to learn:

  1. All important GlideRecord methods with syntax and practical examples.

  2. Query methods such as addQuery(), addEncodedQuery(), addOrCondition(), get(), and query().

  3. CRUD operations using initialize(), insert(), update(), and deleteRecord().

  4. Field methods such as getValue(), getDisplayValue(), setValue(), and getUniqueValue().

  5. GlideAggregate methods such as addAggregate(), groupBy(), getAggregate(), and addHaving().

  6. All supported aggregate types, including COUNT, SUM, AVG, MIN, and MAX.

  7. The differences between similar methods and when to use each one.

  8. Performance best practices, limitations, and common mistakes.

  9. Real-world practical tasks and interview questions using both APIs.

  10. Official documentation or a structured learning path covering beginner to advanced concepts.

I have started learning these APIs and want to understand not just the syntax but also when, why, and how to use each method effectively.

I would appreciate any official documentation, tutorials, examples, or recommendations from experienced ServiceNow developers.

Thank you for your help!

5 REPLIES 5

glideFather
Tera Patron

ahoy @Harshal G Patil,

 

the Developer portal might have what you are looking for, navigate to the Developer portal and go through these menu items:

glideFather_0-1791802558632.png

 

Or use these shortcuts I selected for you (from the same location as seen above):

Let me know if these helped you to get your answers and wish you every success with learning the new stuff

 

 


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---