Simplify Queries with Encoded Queries - ServiceNow Developers Add the encoded query to the Business Rule Open the List Old Hardware Business Rule for editing Replace the text PASTE_ENCODED_QUERY_HERE with the encoded query copied previously NOTE: Use double quotes (“) around the encoded query if the encoded query contains single quotes(‘) Click the Update button Test the Business Rule
Understanding GlideRecord Queries In ServiceNow - The Snowball Adds an encoded query to the GlideRecord, which allows for more complex queries using encoded parameters The idea with GlideRecord queries essentially is to decide on a table, build out a query, and then loop through a subset of records from the returned data set
GlideRecord Cheat Sheet - Snowycode Encoded query strings can be copied directly from a filter, by right-clicking on the breadcrumbs var gr = new GlideRecord('incident'); gr addEncodedQuery