logo

NJP

ServiceNow Using GlideQuery Instead of GlideRecord

ServiceNow Blog · May 08, 2024 · article

ServiceNow Using GlideQuery Instead of GlideRecord

"The GlideQuery API is an alternative to GlideRecord to perform CRUD operations on record data from server-side scripts.

The GlideQuery API lets you:

  • Use standard JavaScript objects and types for queries and results.
  • Quickly diagnose query errors with additional checks and clear error messages.
  • Simplify your code by avoiding boiler-plate query patterns.
  • Avoid common performance issues without needing deeper knowledge of GlideRecord.

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."

https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server/no-namespace/GlideQueryGlobalAPI#GQ-disableWorkflow

View original source

http://www.cloudminus89.com/2024/05/servicenow-using-glidequery-instead-of.html