nerdexam
ServiceNow

CAD · Question #171

Which server-side API debug log method is available for scoped applications?

The correct answer is C. gs.info(). In scoped applications, gs.log() is restricted to the global scope and is not available. The server-side logging methods available to scoped applications are gs.info(), gs.warn(), gs.error(), and gs.debug(). Therefore, gs.info() (C) is the correct answer. gs.print() (B) is not…

Submitted by yuriko_h· Apr 18, 2026Designing and Creating an Application

Question

Which server-side API debug log method is available for scoped applications?

Options

  • Ags.log()
  • Bgs.print()
  • Cgs.info()
  • Dgs.debugLog()

How the community answered

(27 responses)
  • B
    7% (2)
  • C
    89% (24)
  • D
    4% (1)

Explanation

In scoped applications, gs.log() is restricted to the global scope and is not available. The server-side logging methods available to scoped applications are gs.info(), gs.warn(), gs.error(), and gs.debug(). Therefore, gs.info() (C) is the correct answer. gs.print() (B) is not a standard GlideSystem method, and gs.debugLog() (D) does not exist as a standard API method.

Topics

#ServiceNow APIs#Scoped Applications#Server-side Scripting#Logging

Community Discussion

No community discussion yet for this question.

Full CAD Practice