In a scheduled script execution script, which built-in objects are available for use?

Prepare effectively for the ServiceNow CAD certification. Study with detailed questions and explanations. Enhance your skills and knowledge for success in your exam!

Multiple Choice

In a scheduled script execution script, which built-in objects are available for use?

Explanation:
In scheduled script execution, you’re running on the server, so you use server-side APIs. The two built-in objects you’ll most commonly rely on are Glide System and Glide Record. GlideSystem (accessed as gs) provides system-related utilities like logging, time, and properties. GlideRecord is the primary way to interact with data in scripts: you create a GlideRecord for a table, build queries, iterate over results, and update or create records as needed. For example, you might query incidents in a scheduled job and update them in a loop, while logging progress with gs.info. This combination—server-side logging with GlideSystem and data access with GlideRecord—is exactly what a scheduled script needs. The other options point to client-side or UI-specific objects that aren’t available in server-side scheduled scripts, such as objects tied to user sessions or form/page UI. They’re not applicable to this context, and terms like Glide Script or Glide Engine aren’t standard built-in server-side objects in ServiceNow.

In scheduled script execution, you’re running on the server, so you use server-side APIs. The two built-in objects you’ll most commonly rely on are Glide System and Glide Record. GlideSystem (accessed as gs) provides system-related utilities like logging, time, and properties. GlideRecord is the primary way to interact with data in scripts: you create a GlideRecord for a table, build queries, iterate over results, and update or create records as needed.

For example, you might query incidents in a scheduled job and update them in a loop, while logging progress with gs.info. This combination—server-side logging with GlideSystem and data access with GlideRecord—is exactly what a scheduled script needs.

The other options point to client-side or UI-specific objects that aren’t available in server-side scheduled scripts, such as objects tied to user sessions or form/page UI. They’re not applicable to this context, and terms like Glide Script or Glide Engine aren’t standard built-in server-side objects in ServiceNow.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy