March 2017
Beginner
358 pages
9h 51m
English
Perhaps a lesser-known area that supports scripting, is the condition builder in ServiceNow. You can use simple scripts to grab and return values to be used within a query, by using the keyword javascript: at the beginning of your query parameter:

For example, if you navigate to the Incident list, and create a new filter that says Caller, is, javascript:gs.getUserID();, and click Run, then you'll be presented with a list of all incidents for which your user account (or the user account you're impersonating) is the Caller. If you then right-click the query breadcrumb and click Copy URL as ...
Read now
Unlock full access