Skip to main content

Posts

Showing posts from May, 2024

ServiceNow: Managing the active/inactive state with TaskStateUtil

 ServiceNow: Managing the active/inactive state with TaskStateUtil ServiceNow: Managing the active/inactive state with TaskStateUtil > ServiceNow has its own Active state management logic for anything that extends the Task table.  TaskStateUtil - Global . You shouldn’t create Business Rules which manage the Active field on any tables that extend task. You can just modify the dictionary attributes if you want to modify the default behavior

ServiceNow Using GlideQuery Instead of GlideRecord

 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