servicenow developers training modules Flashcards

1
Q

What do Server Side scripts have access to?

A

The database, The current record, The previous record, the full system API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do Client Side scripts have access to?

A

The UI elements in the browser, The current form, The current value of fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

For the following component, what is the description: Business Rules

A

Perform operations on table data when it is displayed, inserted, updated, deleted, or queried. They are similar to RDBMS triggers, but with a full server-side API to support them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The following component is often used for what purpose: Business rules

A

It is often used to validate Data and Trigger events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

For the following component, what is the description: Script Includes

A

Script includes are used to store JavaScript functions and classes for use by server-side script objects. Each script include defines either a function or an implementation of a ServiceNow class. Script includes only run when called by a server script.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

For the following component, what is the description: Events

A

Run when specific conditions occur on the system to trigger script actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For the following component, what is the description: Script Actions

A

Run when a specific event is triggered to determine how the system handles it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

For the following component, what is the description: UI Actions

A

Add buttons, links, and context menu items on forms and lists to allow users to perform application-specific operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

For the following component, what is the description: Client Scripts

A

Run JavaScript on the browser to perform operations on form and list data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

For the following component, what is the description: UI policies

A

Perform operations on form data or fields, such as making fields mandatory, visible, or read-only.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The following component is often used for what purpose: Script includes

A

Enable different components to re-use server code and to make server code available to client-side calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The following component is often used for what purpose: Events

A

Identify and log when certain conditions are met, such as when an incident is opened or closed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The following component is often used for what purpose: Script actions

A

Automate a response when a specific even occurs, such as send and email notification when an incident is opened.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The following component is often used for what purpose: UI actions

A

Enable users to perform a specific action, such as resolve an incident

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The following component is often used for what purpose: Client Scripts

A

Enforce client-side validation requirements, such as making certain an end date is after a start date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The following component is often used for what purpose: UI Policies

A

Enforce data policies from the UI, such as make a field required on first entry and then read-only afterwards

17
Q

What is the description for the following class, object, or method: function onSubmit()

A

A JavaScript function call that occurs whenever the user submits form data. Enclosing code in a function prevents the system API from erroneously re-using variable values in different scopes.

18
Q

What is the description for the following class, object, or method:
g_form.getValue(‘end_date’)
g_form.getValue(‘start_date’)

A

A JavaScript API call to the GlideForm class. In this case, to use the getValue() method to get the value of the end_date and start_date fields.

19
Q

What is the description for the following class, object, or method:
g_form.clearMessages()

A

A JavaScript API call to the GlideForm class. In this case, to use the clearMessages() method to remove an previous error and info messages.

20
Q

What is the description for the following class, object, or method:
g_form.getLabelOf(‘end_date’)

A

A JavaScript API call to the GlideForm class. In this case, to use the getLabelOf() method to get the label of the end_date field.

21
Q

The following characteristics describe what:

  1. A type that determines when they run in relation to database operations.
  2. A list of database operations that can trigger them.
  3. An action that can do one or more of the following - Set one or more field values, display a message, abort the current database operation, run custom code
A

These describe a Business Rule

22
Q

When does the following Business Rule type run and what is it used for: Before

A

runs: after the user submits the form but before the system takes any action on the record in the database.
use to: Validate data before inserting or updating into the database

23
Q

What is the description for the following class, object, or method: After

A

After the user submits the form and after the system takes action on the record on the database
used to: Perform calculations or business logic on data, such as updating totals or counts

24
Q

What is the description for the following class, object, or method: Async

A

As an asynchronous scheduled job in the background after the user submits the form and after the system takes action on the record in the database
used to: Perform calculations or business logic on data in the background. Allows the system to do other tasks, such as loading a form or running other business rules.

25
Q

What is the description for the following class, object, or method: Display

A

Before the system displays the form to the user and just after the system reads a record from the database
used to: Perform calculations or business logic on data that may affect user input, such as the current price of a catalog item.

26
Q

What is the description of the following Class, object, or method: Class.create()

A

A JavaScript API call to create a class

27
Q

What is the description of the following Class, object, or method: initialize: function(mrkevent)

A

A function declaration that defines one parameter mrkevent

28
Q

What is the description of the following Class, object, or method: current.sys_id

A

A dot-walking reference to the value of the Sys ID field of the current record. The Sys ID uniquely identifies the record like a foreign key in a SQL query. See Dot-walking

29
Q

What is the description of the following Class, object, or method: current.budget

A

A dot-walking reference to the value of the budget field of the current record. See Dot-walking

30
Q

What is the description of the following Class, object, or method: totalCost(mrkevent)

A

A reference to the totalCost script include with a parameter input

31
Q

What is the description of the following Class, object, or method: getCost()

A

A reference to the getCost function of the totalCost script include

32
Q

What is the description of the following Class, object, or method: gs.addErrorMessage

A

A glidesystem method to display an error message on the top of the screen. See GlideSystem API reference