Scoped GlideSession - isInteractive()

Returns true if the session is interactive.

An interactive session is one that involves an end-user interacting with a user interface that then retrieves information from a server. An example of this type of session is when a user logs in using the log-in screen or uses a form to query a data store. A non-interactive session is one that only involves programmatic interaction with a server such as a SOAP request to retrieve data.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the session is interactive.

var interActive = gs.getSession().isInteractive();
gs.info(interActive);

Output:

false