addorquery servicenow. When addQuery()is called with only two parameters, table field and. addorquery servicenow

 
 When addQuery()is called with only two parameters, table field andaddorquery servicenow  changed its name to Service-now

ANSWER: Responses 1, 3, and 4 are correct. eg: Name STARTS WITH YOUR_SEARCH_WORDCommunity Ask questions, give advice, and connect with fellow ServiceNow professionals. Used to search the database for matching records. This article contains various examples to navigate by url in ServiceNow. addEncodedQuery (“priority=1^ORpriority=2. Administrators can add or modify dictionary attributes. Click the Run button. . It works seamlessly with your ServiceNow applications, delivering out-of-the-box value across the entire IT value stream—helping you to diagnose service outages,Integrate Ansible Automation Platform with ServiceNow ITSM, and improve the value of your service chain. To select fields from a slushbucket. ServiceNow ® capabilities through hands-on, real-world instruction to helps you meet your goals. Conditions are evaluated before the rule is executed, if the condition is met, the script is evaluated and executed. For this example, navigate to Problems > Open. GraphQL offers many benefits over REST API’s, including: Fetching data across multiple sources from a single API call. Set up a Favorite for commonly used applications, catalog items, lists, reports, and more. The Now Support portal is your launchpad to access self-help, get technical support, and manage your ServiceNow instances. 15 seconds. Click View / Run and choose to Create a Report option. But even now with thousands of customers worldwide, ServiceNow remains fully committed to the same priorities that defined its mission 20 years ago: a passion for helping people get more out of technology. Documentation Find detailed information about ServiceNow products, apps, features, and releases. Widgets are reusable components that make up the functionality of a portal page. Extend the Now Platform with additional applications and features. Impact Accelerate ROI and amplify your expertise. It is recommended that new. More specifically, CSM refers to the orchestration of activities between customers, customer service, middle-office staff, operations teams, back-office departments, and IT groups to. System properties are a great way to add options to your system and keep people (including yourself) from having to make. Partner Grow your business with promotions, news, and marketing tools. ServiceNow explains how to solve this issue. Figure 1. • Database Refreshes & Database Backup using RMAN utility. This article will be at a reasonably advanced level but should be valuable for most any level of ServiceNow developer. Here is an example of using the addQuery() method in a GlideRecord query: var gr = new. Parent topic: Server-side scripting GlideAggregate The GlideAggregate class is an extension of GlideRecord and allows database aggregation (COUNT, SUM, MIN, The GlideRecord get () method is a useful coding shortcut when you know exactly what record you want and can uniquely identify that record. IntegrationHub. The Splunk Add-on for ServiceNow allows a Splunk software administrator to use ServiceNow REST APIs to collect the following types of data: After you install and configure this add-on, you can use workflow actions that link directly from events in the Splunk platform search results to relevant ServiceNow incidents, events, and knowledge. Applying multiple queries We can apply multiple search queries, which act as AND clauses, by adding multiple addQuery, addNullQuery, or addNotNullQuery methods, as shown in the following example:. Loading. Documentation Find detailed information about ServiceNow products, apps, features, and releases. For example, query and update a record, impersonate a user, or run a server-side script. ServiceNow Guru contains hundreds of quality scripts and solutions that address REAL WORLD ServiceNow challenges. On the other hand, when the addNotNullQuery () method is. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. ‍. Ask Question Asked 4 years ago. How search works: Punctuation and capital letters are ignored. Developer Build, test, and deploy applications. To add additional query parameters, use the Add query parameter button to add a new parameter to the query. The relationship between users and groups is stored on sys_user_grmemeber table. With reference fields (essentially foreign keys), you can use dot-walking to query through a reference field to query against fields on the. Client scripts are scripts that run inside the user's browser (the 'client') when a page is loaded, when a form is modified, or when the form is submitted. We would like to show you a description here but the site won’t allow us. The key to making this work is the g_list object that has the. URL. Steps to create report: Navigate to Reports -> Create New. Enter a unique name for the input. e. Dotwalking and Flags Similar to GlideRecord, GlideQuery supports dotwalking, both when using select and where. Add an "OR" Condition to a GlideRecord Query in ServiceNow Raw GlideRecordOr. The MID Server initiates all communications with the ServiceNow® instance. Clicking a breadcrumb removes all the conditions to its right. This article shows how to connect to ServiceNow with the CData Python Connector and use petl and pandas to extract, transform, and load ServiceNow data. The first rule is to make the GlideQuery script more readable. Introduction. getParameterValue ('paramName') RP. In customer support, the customer case (or simply ‘case management’) is the primary, most essential entity. Use Conditions in Business Rules. To support existing scripts and new scripts developed to the ECMAScript5 standard, the JavaScript engine has two modes: The JavaScript engine dynamically determines which mode to use on a script-by-script basis based on scope and when the script was written. Impact Accelerate ROI and amplify your expertise. This practice has saved me more time and headaches than almost anything else I’ve done as a developer, because just about every interesting problem I’ve solved with code, I have inevitably had to solve. Queries made with the client-side GlideRecord are executed on the server. ; Build the query condition(s). Get full access to Learning ServiceNow and 60K+ other titles, with a free 10-day trial of O'Reilly. Documentation Find detailed information about ServiceNow products, apps, features, and releases. The first rule is to make the GlideQuery script more readable. 4 © 2021 ServiceNow, Inc. ServiceNow, the ServiceNow logo, Now, Now Platform, and other ServiceNow marks are trademarks and/or registeredSelect the OData feed from the list and then click Edit Credential. This tutorial blog post is one of those experiments. Developers must pass the field. Script Includes execute their script logic only when explicitly called by other scripts. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. Partner Grow your business with promotions, news, and marketing tools. A. Description. Loading. Configure search engines and interfaces for the Now Platform. Please note: The APIs below are intended for scoped applications and may behave differently in the global scope. query(); while (gr. set () Sets the value associated with a given search parameter to. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. The GlideRecord API is used for database operations. Skip to page content. Applying an OR query. Please note: The APIs below are intended for scoped applications and may behave differently in the global scope. You can check this thread about it here: [Atlassian Community] Confluence page does not display in an iframe . . query += " "; query += "}"; alert ( query); Now that you’ve got this, from any List you can right-click on the header and the bottom option will be “Get GlideRecord Query” and you can copy the resulting code. Establish your ServiceNow ITSM as the “single source of truth” for your IT assets, while using Ansible Automation Platform to programmatically open, close and update service requests, incidents, problems and change requests. Let's assume an incident record is accessed via a list, sometimes we do see in the URL containing additional parameters such as "sysparm_record_list", "sysparm_query". ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. In my years as a ServiceNow developer, I’ve collected a large number of abstract, reusable scripts for various purposes. is an American software company based in Santa Clara, California that develops a cloud computing platform to help companies manage digital workflows for enterprise operations. Innovation Lab. Solution Sage. Demo ITOM. APIs and Integration Tools are available with these ServiceNow products. Please note: The APIs below are intended for scoped applications and. One little-known, but extremely useful access control method is to use business rules to restrict record access in your system. Become a Certified Implementation Specialist. The most relevant topics (based on weighting and matching to search terms) are listed first in search results. Please note: The APIs below are intended for scoped applications and may behave differently in the global scope. getUserByID () Returns a reference to the user object for the user ID (or sys_id) provided. Legacy Capabilities. The first step is to grab the job series and. # Navigate to Integrations and search for ServiceNow v2. These business rules have a ‘When’ value of ‘Before’ and also have the ‘Query’ checkbox selected. Copy URL menu option. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. Equip technicians with what they need to complete jobs on the first visit. Right-click on the gray form header, and you’ll see a large drop down list appear from the form header. Configure inputs on your data collection node, usually a heavy forwarder . You may have seen these used in the ‘Condition’ field on many of the out-of-box business rules. ServiceNow Products. Phase 3: Testing and debugging your application Verify that the application meets your business requirements. We would like to show you a description here but the site won’t allow us. Explore the various ServiceNow Legacy options for past releases of the Now Platform , including automated work processes, communications process management, and voice and text messaging integrations. The ServiceNow® MID Server enables communication and the movement of data between a ServiceNow instance and external applications, data sources, and services. The first orWhere in a query must be preceded by a where, whereNull, or whereNotNull. Community Ask questions, give advice, and connect with fellow ServiceNow professionals. Service Portal Introduction>Widgets. Click Submit. 0, parameters are defined in the parameters section of an operation or path. Visit Reports. Return to the REST API Explorer and paste the encoded query into the query parameter. About Store. One of most powerful and useful javaclasses in ServiceNow is the GlideRecord. Reload to refresh your session. Documentation Find detailed information about ServiceNow products, apps, features, and releases. Create a Report in ServiceNow. Learning Build skills with instructor-led and online training. Join us for innovative speakers and breakout sessions, focused on helping you bring intelligence to every corner of your business. 0 and later. addQuery() The addQuery() method of the GlideRecord class can be called in three different ways, depending on whether one, two, or three arguments are. We will utilize a variety of tools to expose the details of. Below you will find a list of the available endpoints with the latest information. It is designed to mimic the familiar GlideRecord interface you know with pythonic support where applicable. Scheduled imports bring relevant SCCM data into the ServiceNow instance from a SQL Server database and map the data to the appropriate tables in the. This is the All Applications tab, which shows all application menus and modules. Join our Technology Partner Program to sell and distribute applications. ServiceNow’s addEncodedQuery() allows a ServiceNow Admin to use the condition builder, to build out several conditions on a table – and then use those. This, therefore, sets the 'Updated By' field value to 'System'. getRowCount() is totally fine. 1. Provides out-of-the-box, CMDB class models for new resources. While GlideAggregate is probably a more performant operation, using . ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. Documentation Find detailed information about ServiceNow products, apps, features, and releases. myObj. (Optional) From the Query Parameters tab, locate the query parameter and. This plugin is activated by default starting with Madrid instances. Queries made with the client-side GlideRecord are executed on the server. GlideRecord interactions start with a database query. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. a) GlideSystem (gs) b) GlideUser (g_user) c) GlideDateTime d) GlideDate e) GlideForm (g_form), When do onSubmit Client Scripts execute their script logic? More than one response may be. If any of the query statements need to be OR'ed, use the GlideQueryConditionmethod addOrCondition(). query += " "; query += "}"; alert ( query); Now that you’ve got this, from any List you can right-click on the header and the bottom option will be “Get GlideRecord Query” and you can copy the resulting code. They are ordered from left to right. 0, see our OpenAPI 2. You should first verify your query through the ServiceNow UI before attempting to use it in an API call. Here is what the query looks like, when you do use the encoded query. addQuery () Operators. For more information about a particular endpoint, click on it in the left pane to view a description of the endpoint, applicable query parameters, a sample request in multiple formats, and a sample response payload. Loading. Phase 2: Developing your application Add components and content to your application. Now Platform. Select the plus sign to add a new check, and then add the ServiceNow Change Management check to your environment. Does Service Now allow querying referenced fields through the GlideRecord? And if so, how? I have an application with a local user table for preferences specific to the application. ServiceNow improves service levels, energizes employees, and enables your enterprise to work at lightspeed. Using methods in the GlideRecord API, you can return all the records in a table, return records based on specific conditions or keywords, or return records from multiple tables with a single query. The CMDB CI Class Models app provides customers and ISV partners with out-of-the-box classes for the Discovery and Service Mapping Patterns app. Custom alert actions are a user-friendly implementation of the alert-triggered scripts available in previous versions. addQuery('active', true); gr. Dictionary attributes - Product Documentation: Tokyo - Now Support Portal. Business Rules | ServiceNow Developers. With built-in, optimized data processing, the CData Python Connector offers unmatched performance for interacting with live ServiceNow data in Python. How the co-creator of Kubernetes is helping developers build safer software. Impact Accelerate ROI and amplify your expertise. IntegrationHub. addNullQuery() and addNotNullQuery() Both addNullQuery() and addNotNullQuery() accept a single argument; a string, indicating which field should be checked. In this video, I’ll show you how to construct a sample GraphQL query to fetch data in ServiceNow and then how we can use GraphQL inside of a. Recently, I was looking at how to integrate ServiceNow with Microsoft Teams so that end-users could query ServiceNow without leaving Teams. We would like to show you a description here but the site won’t allow us. It requires using “Connection and Credential Aliases” in the IntegrationHub application. The first piece is the ‘Reference qual’ field value on the dictionary entry of the reference field (Assignment group in this case). Idoubt if there's a single concept in Service-now that is more valuable to understand than how to use GlideRecord methods to query, insert, update, and delete records in your system. ServiceNow 24/7 Support. RLQUERY is what Related List Conditions in reports use. Loading. The ServiceNow instance name, without the domain, service-now. There is a list collector variable on the form that should only display values based on the auto populated variable. The main way to do this is to utilize the RP object’s method called “getParameterValue”: RP. The most relevant topics (based on weighting and matching to search terms) are listed first in search results. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. GraphQL is an open-source data query and manipulation language for APIs. Perform server-side operations. js var myLog = ""; var gr = new GlideRecord ("sys_user"); //New object to build OR query var. Resolution. Prerequisites SNMP Version - This is one critical check that has to be verified for the target host. Download and install the Chrome Advanced Rest Client Extension 4. How to Connect ServiceNow to Excel using REST Webservices. [Atlassian Marketplace] Confluence Cloud – ServiceNow . Get ServiceNow. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. A relationship in the CMDB consistsThis article discusses how to check if a logged-in user has a role in Service Portal widgets. As the customer reaches out with a question or issue in need or resolution, a support agent will create a new case. When addNullQuery () is called on a GlideRecord object, it adds a condition to your query, stating that the field passed into the method call must be null (empty). This is the. When. Use the Chrome REST Plugin to put in REST details - GET (That pulls data. Skip to page content. Related list conditions allow you to include a relationship with another table in the filter. To get a query string, you should add a query to the builder, then build it. If there is no condition, the system. To explicitly AND or OR a condition in a query, use the methods from the. ManyServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. Skip to page contentWe would like to show you a description here but the site won’t allow us. Become a Certified Application Specialist. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. can read but not edit. Simplify Queries with Encoded Queries. API is not supported in scoped applications. Known synonyms are applied. Table 1. Note that it say '=' if the script is run via 'Scripts - Background', ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. See the GlideRecord API reference for a complete list of methods. Documentation Find detailed information about ServiceNow products, apps, features, and releases. hasAttachment() on every single one, and add You signed in with another tab or window. . The server-side API also has a GlideUser class but the server-side GlideUser class does not use the g_user object. This allows ServiceNow to have a nearly real-time copy of AD users' account details without having to wait for the next scheduled job to trigger. ServiceNow provides a number of methods (SOAP, REST API), JDBC, LDAP, Data Export, Email, CTI through which it can be integrated with other tools like Event Monitoring Tools – Netcool, Jira, Slack. 0. Our free one-day event kicks off in October. Service-now includes some simple convenience methods for identifying changes to a record or field in a business rule. The maps can show both upstream and downstream dependencies for the root CI. gs. keys () Returns an iterator allowing iteration through all keys of the key/value pairs contained in this object. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. Right click on the menu header > configure > related list > “Incident>Parent Incident”. It is recommended that new. Business Rules respond to database interactions regardless of access method: for example, users interacting with records through forms or lists, web services, or data imports (configurable). It can be used to perform most database operations in your application and works perfectly with all of Laravel's supported database systems. You can do this by creating what I call a ‘Before Query’ business rule. Partner Grow your business with promotions, news, and marketing tools. I t’s hard to believe that it’s been seven years since I wrote a post showing how you can use client scripts to manipulate the appearance of form UI action buttons. Here is an example of using the addQuery() method in a GlideRecord query: var gr = new GlideRecord('incident'); gr. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. Community Ask questions, give advice, and connect with fellow ServiceNow professionals. Please note: The APIs below are intended for scoped applications and may behave differently in the global scope. The ServiceNow Graph connector allows your organization to index knowledge-based articles visibleCustomer created a custom table where they had Configuration Item field and Change Request field. Events. May 2, 2016 at 18:07. All of the methods below return true or false based on changes to the ‘current’ record. Additionally, you. nil()' method. addQuery (fieldname, operator, value); // fieldname is the name of the column the table or view // operator as detailed in the table below // value is the record's value we are looking for. GlideRecord interactions start with a database query. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. Extending an existing ServiceNow table means the new table inherits the parent table's columns as well as its business logic. In the Query Parameters related list, click New. Client-side GlideRecord enables the use of some GlideRecord functionality in client-side scripts, such as client scripts and UI policy scripts. Record change: current. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. Return to the REST API Explorer and paste the encoded query into the query parameter. Add Attachments to Existing Record - Product Documentation: Tokyo - Now Support Portal. Documentation Find detailed information about ServiceNow products, apps, features, and releases. How to classify groups as per theMicrosoft provides the ServiceNow Graph Connector to allow integration between Sharepoint and ServiceNow. Please note: The APIs below are intended for scoped applications and. We are excited to announce the availability of a Power BI content pack for ServiceNow that’s focused on incident management. This article aims at providing steps to create a report for the above scenario. When you issue complex SQL queries from. Dotwalking is presumed in the Now platform and should be reasonably familiar to most GlideRecord developers. Both addNullQuery () and addNotNullQuery () accept a single argument; a string, indicating which field should be checked. This is important to know as it is pivotal in understanding how choices. Please note: The APIs below are intended for scoped applications and may behave differently in the global scope. ServiceNow admins use addQuery() to select records from a table, based off of a field and value match. We are very interested in your feedback. company). Find detailed information about ServiceNow products, apps, features, and releases. Use the following steps to create a linked service to ServiceNow in the Azure portal UI. Dot-walking examples - Product Documentation: San Diego - Now Support Portal. Generative AI. The Service-now wiki contains. nil()' method. Documentation Find detailed information about ServiceNow products, apps, features, and releases. In short, it’s a staging table combined with some transformation logic that allows you to import data into your ServiceNow instance. Special characters like underscores (_) are removed. addOrQuery() and addAndQuery() are not methods from the GlideRecord API. 30 seconds. ServiceNow Store. The CMDB, in contrast to a static asset list, helps you track not only the configuration items (CIs) within your system but also the relationships between those items. From the choice list, select the table relationship to include in the query. Actual behavior: When running script using 'CONTAINS' of addOrCondition with search_key via REST API , then it shows '=', not 'CONTAINS'. addQuery() B. GlideRecord Cheat Sheet for ServiceNow Devs ‍ Below is a list of commonly used GlideRecord code that you can come back to daily while writing scripts in ServiceNow. Impact Accelerate ROI and amplify your expertise. ###Follow these steps to view the columns in a table: In the main ServiceNow Browser window, use the All menu to open System Definition > Tables. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. addOrQuery() and addAndQuery() are not methods from the GlideRecord API. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. This action can also be taken by right-clicking any record in a list. Please note: These APIs are provided to support legacy applications in. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. Possibly something like making an SQL call from powershell. Security in ServiceNow is a very important, but often very confusing subject to get the hang of. Laravel's database query builder provides a convenient, fluent interface to creating and running database queries. It’s nothing complicated, but can still save a bit of time. Click RELATED LISTS CONDITIONS to expand the section. 301 Moved PermanentlyCertification candidate’s journey guide. About. refers to Task table as it is a reference field. Using GlideAjax can improve performance in ServiceNow because it allows the client script to run server-side code without having to refresh the page. If it does, then I would. Access ServiceNow data like you would a database - read, write, and update Schedules, Timelines, Questions, Syslogs, etc. Now Platform. Community Ask questions, give advice, and connect with fellow ServiceNow professionals. Deliver workflows that connect people, functions, and systems with the platform of platforms for digital business. The problem is that you will need to enter their sys_id instead of their name, so you will need to query the sys_user table and. Microsoft. com. More than one may be correct. Learning Build skills with instructor-led and online training. Request parameters are added to the endpoint URL by the REST API Explorer when the request is sent. If you need the data in CSV (Comma. Intelligent query features enable users to quickly find the answers they need. It dramatically simplifies filtering and reading in fields referenced by the current table instead of executing another GlideQuery. GlideRecord is a ServiceNow API, and object type. Please note: The APIs below are intended for scoped applications and. ANSWER: Responses 1, 3, and 4 are correct. Impact Accelerate ROI and amplify your expertise. Navigate to your environment "latest", select the ellipsis button and then select Approvals and checks. The Service Now modules previously packaged as part of Ansible, now in a Collection distributed via Ansible Galaxy. The function accepts a number of different parameters. Step 1: Authenticate ServiceNow and SQL Server. Next, right-click on the breadcrumbs and select “Copy query”. Developer Build, test, and deploy applications. Note: You can only select a text field. . Install the corresponding Demo Data plugin to get a feel for how things can be configured. What is RLQUERY? Related List Query is something you can add to an Encoded Query to query a child table within one GlideRecord query. addQuery ('word_notes', 'CONTAINS', 'Fixed'); In the absence of an operator, method assumes condition to test is equality myObj. Select a scripted REST API record. "Before query Business Rule" on a "task" record suppose to filter the data based on the AddQuery() method and parameters supplied in "script" section of the business rule. We are experimenting with new training content delivery methods. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. URLSearchParams. In the base system instance, navigate to Incident > All. Build the query condition (s). Let's walk through what this code does, and then I'll show you how to use it. changed its name to Service-now. Open the list filter and select the conditions for the current (Problem) table. See the GlideRecord API reference for a complete list of methods. If. Used to search the database for matching records; Must be in quotes . Actual behavior: When running script using 'CONTAINS' of addOrCondition with search_key via REST API , then it shows '=', not 'CONTAINS'. Skip to page content. The ‘javascript:’ prefix is the same, but you need to reference your Script Include function instead of the business rule function. Integrations. When addQuery()is called with only two parameters, table field and. We would like to show you a description here but the site won’t allow us. Please note: These APIs are provided to support legacy applications in the global scope. You use it where you might typically use server-side GlideRecord. get ('paramName')" Also, while we’re discussing the RP. An LDAP listener is a type of persistent query, also called persistent search. addQuery('field','value'); builder. The first orWhere in a query must be preceded by a where, whereNull, or whereNotNull. We would like to show you a description here but the site won’t allow us. You must specify expiry date for excel file. For Flow Designer, setting up credentials is a bit different. First, you can see that the function (findAnywhere) takes two arguments: sysIDToFind, and getHTML. Loading. The ‘DYNAMIC’ keyword indicates the use of a dynamic filter, and what follows is the sys_id of the corresponding dynamic filter record. addOrCondition () is typically called with three parameters; table field, operator, and comparison value. Replace PASTE_USER_SYS_ID_HERE with the Sys ID for your patent attorney record. More than one may be correct. Become a Certified Application Developer. If you are not sure whether a class is part of the client-side or server-side API, check the API Reference. We are very interested in your feedback. addQuery() B. Add the encoded query to the Business Rule. The generalized strategy is: Create a GlideRecord object for the table of interest. Skip to page content. The next step is to test it using the REST API Explorer. Gain insights from data, identify trends, and remove bottlenecks. Reference qualifier on reference field (e. You can connect Amazon Kendra to your ServiceNow data source. addQuery ('category', 'Hardware'); Is the same as The GlideRecord class is the way to interact with the ServiceNow database from a script. The Script: var inc = new GlideRecord (“incident”); inc. ServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. Glidesoft, Inc. .