5 Intro to Scripting & Application Tools Flashcards

1
Q

What is scripting in ServiceNow?

A

The customization of an instance and/or application using JavaScript

  • executes on client (scripts that run in a web browser) or server side (scripts that run on the server, where the database resides)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a UI Policy?

A

User Interface Policy
A rule that is applied to a form or a list to dynamically change information to the field itself

(client-side)

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

What is a Data Policy?

A

Enforces requirements on field and record data when the data is inserted into ServiceNow or when the data in an Import Set is submitted via an external system

(server-side but can be added to client-side, by checking box “Use as UI Policy on client)

Unlike UI Policies, Data Policies apply to all data entered into the Platform

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

What can client scripts be created to do? (1 + 3)

A

They make “real-time” changes to the appearance of the user interface (especially forms)

  • update the location field to reflect the value entered in the caller field
  • disable the attachment link of a closed record when the form is loaded so a user is unable to add or modify changes
  • display a notice at the top of the page to confirm a catalog request was created
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name four of the supported Client Scripts:

A

onLoad()

onChange()

onSubmit()

onCellEdit()

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

Name four of the supported Client Scripts:

A

onLoad()
- runs when a form is first drawn and before control is given to the user to begin typing (when form is loaded)

onChange()

  • runs when a particular field changes value
  • script applies to a particular field on a form rather than on the form itself

onSubmit()
- runs when a form is saved/submitted/updated

onCellEdit()
- runs when a cell in a list changes value through use of the list editor

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

How can you use a UI Policy to set fields on a form? (3)

A

You can use them to make fields on a form to:

Mandatory or Optional
Hidden or Visible
Read-only or Editable

These are called UI Policy Actions

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

What is a UI action?

A

UI actions add buttons, links, and context menu items on forms and list, making the UI more interactive, customized and specific to customer activities

UI actions can contain scripts that define custom functionality and can appear on the server or client side

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

Name 7 examples of UI actions:

A

Form buttons

Form context menu items

Form links

List buttons

List context menu items

List choices (at the bottom of a list)

List links (Related Link at the bottom of a list)

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

What is a Business Rule?

A

A Business Rule is a server-side script that is configured to run when a record is displayed, inserted, updated, deleted or when a table is queried. Thus, unlike Client Scripts, Business Rules do NOT run real-time

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

What does every Business rule include? (4)

A

What table to run and what timing

What conditions to evaluate

What script to run based on evaluation

If its client-callable

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

What type of scripts run on the browser?

A

Client-side scripts:

UI Policies
Client Scripts

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

Which script runs when a record is displayed, inserted, updated, deleted or when a table is queried?

A

Business Rule

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

Does a business rule run on the client or server side?

A

Server side

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

What provides additional functionality within an instance?

A

Plugins

System Definition > Plugins

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

What do you configure to instruct fields how to behave on a form when a UI Policy is triggered?

A

UI Policy Action

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

What does an Update Set do?

A

It tracks changes to applications and platform features then groups them together so they can be moved from one instance to another

  • a “point in time” XML snapshot of process records
  • works by writing changes from tracked tables to the Customer Update [sys_update_xml] table
18
Q

What is captured in an Update Set?

A

Customizations and configuration changes are captured, NOT the changes to data records or Dashboards (the last can be added manually)

Update Sets act as a container for configuration records

19
Q

What steps are typically included in the process of applying an Update Set (applying an update set to an instance)?

A
  1. Retrieve
  2. Preview
  3. Commit
20
Q

What steps are typically included in the retrieval process of an update set?

A
  1. System Update Sets > Retrieved Update Sets
  2. Click Import Update Set from XML under Related Links
  3. Choose a file to upload
  4. Upload the file
21
Q

What does the IntegrationHub provide?

A

A single solution to quickly integrate with third party services to build and share content without scripting

22
Q

What is used to move customizations from one instance to another?

A

Update Sets

23
Q

Which types of records are not captured in an update set by default?

A

Data records
Users, groups, roles (?)
+ Dashboards (can be added manually)

24
Q

Which ServiceNow tool is used by developers to create custom applications?

A

Studio

25
Q

A non-administrator user who is assigned one or more permissions to develop applications is called:

A

Delegated Developer

26
Q

Which site offers help and training to ServiceNow Developers?

A

https://developer.servicenow.com

27
Q

What protects applications by identifying and restricting access to available fields and data?

A

Application Scoping

28
Q

How can a user display the current application scope in the banner frame?

A

System Setting (gear icon)
Developer tab
Show application picker in header

29
Q

What ServiceNow feature can be used to begin the creation of an application?

A

Guided Application Creator

It can be used to:

  • create an application record
  • define roles
  • designate application for different user experiences
30
Q

When can Business Rules run?

A

Can be set to run/execute before or after the database action has occurred and is determined by the When setting:

  • Before a record is saved to the database
  • After a record is saved to the database
  • Async (queued); client and server work independently
  • Display before a record is displayed
31
Q

Where can you create new UI policies?

A

On the form record (e.g., Incident form), use the Form Context Menu > Configure > UI Policies
OR
System UI > UI Policies

32
Q

Where can you create new Business Rules?

A

On the form record (e.g., Incident form), use the Form Context Menu > Configure > Business Rules
OR
System Definition > Business Rules

33
Q

Which module allows you to create a new Update Set or set an existing one as your current Update Set?

A

System Update Sets > Local Update Sets

34
Q

Which module would allow an admin to retrieve an update set from a remote instance?

A

System Update Sets > Update Sources

(select the instance with the completed update set you want to commit, click “Retrieve Completed Update Sets”, then select the update you want to select, and click the Commit Update Set button

Note: Select Test Connection to ensure successful retrieval of the update set from the remote instance

35
Q

How can an admin show which update set they are working on and select an Update Set to capture platform configuration changes?

A
  1. Go to System Settings (gear icon of the banner frame)
  2. Go to the Developer tab
  3. Toggle “Show update set picker in header”
36
Q

What state must the Update Set be in in order to be ready for export?

A

Complete

Click the View current Update Set icon beside the update set picker to change the update set state

37
Q

What are the general steps to export an Update Set?

A
  1. Create and/or select an update set to capture configurations
  2. Mark the Update Set state as complete
  3. Export to XML (under Related Links)
38
Q

What is AES?

A

Application Engine Studio

- used for low-code development, automating business processes, and solving business problems

39
Q

What is the scope of each custom application?

A

All custom applications have a private scope and is specified by admins when they create an app.

Once a scope is assigned to an app, it cannot be changed

40
Q

What can you use to create and run automated tests on your ServiceNow instance after modifying it?

A

Automated Test Framework (ATF)

41
Q

What are the general steps to import and commit an Update Set from XML?

A
  1. System Update Sets > Retrieved Update Sets
  2. Under Related Links select Import Update Set from XML
  3. Choose File and Upload
  4. Select the Catalog Item Form Changes update set with the state of Loaded
  5. Select the Preview Update Set and Close
  6. Select the Commit Update Set and close