ServiceNow GlideQuery Examples by Peter Bell, Andrew Barnes, and Jace Benson
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
~Tom Cargill
The GlideQuery API is an alternative to GlideRecord to perform CRUD operations on record data from server-side scripts. GlideQuery provides a simplified and consistent syntax for querying records. Use the GlideQuery API in scoped or global server-side scripts. When used within a scoped app, it must be prefixed with the global scope.
By diving straight into practical examples and patterns using GlideQuery is one of the quickest ways to learn and embrace it but however, the choice ultimately depends on the specific needs and coding style preferences of the developer with GlideQuery handling the querying part and GlideRecord handling the record manipulation part.
- GlideQuery - Scoped, Global (From ServiceNow Documentation)
- https://docs.servicenow.com/bundle/vancouver-api-reference/page/app-store/dev_portal/API_reference/GlideQuery/concept/GlideQueryGlobalAPI.html
- GlideQuery (Part 1)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p1/
- GlideQuery (Part 2)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p2/
- GlideQuery (Part 3)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p3/
- GlideQuery - Aggregates (Part 4)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p4/
- GlideQuery - Dot Walking and Flags (Part 5)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p5/
- GlideQuery - Stream Processing - Part 1 (Part 6)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p6/
- GlideQuery - Stream Processing - Part 2 (Part 7)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p7/
- GlideQuery - Complex Queries (Part 8)
- https://developer.servicenow.com/blog.do?p=/post/glidequery-p8/
- Glide Freaking Query Wow by Jace Benson
- https://jace.pro/post/2020-05-24-glide-freaking-query-wow/