Modul 5: Intro to Scripting & Application Tools Flashcards
What is Scripting in ServiceNow?
Scripting in ServiceNow or Platform Scripting is the customization of an instance and/or applications by using JavaScript.
Dependent on how the script is executed, JavaScript may execute on the client or server side and fundamentally alter how the base system functions and how its UI appears.
What is Round-trips?
Client to server round-trips take time and make the end-user wait for the round-trip to complete.
Request + Response = Round Trip.
Script Types: UI Policy and Data Policy.
Explain: UI Policy
UI Policy bruges kun på formulare. (Executed on the Client side).
A User Interface (UI) Policy is a rule that is applied to a form to dynamically change form information or the form itself.
Use a UI Policy to set fields on a form to:
- Mandatory or Optional
- Hidden or Visibale
- Read-only or Editable
NOTE: To apply a UI Policy to all views, set the Global setting to true.
Script Types: UI Policy and Data Policy.
Explain: Data Policy
A Data Policy is a rule that enforces data consistency by setting fields as mandatory and/or read-only.
Data Policy controls are similar to UI Policies but UI Policies are only enforced on data entered into a form (Passing through the UI).
Data Policies are applied to all data entered into the platform; form (UI), Import Sets, or Web Services.
A data policy executes on the server side but can also run as a UI Policy on the client side.
What is Script Types: UI Action?
Vi skal scripte for at bruge dette. User Interface (UI) Actions add buttons, links, and context menu items on forms and lists, making the UI more interactive, customizable, and specific to user activities.
What is Script Types: Client Script?
Client scripts make “real-time” changes to the appearance of the user interface, especially forms.
Client Scripts execute on the client side.
Man kan sætte client scripts op når man åbner, ændre eller submitter formularen.
What is Script Types: Business Rule?
A Business Rule is configured to run when a record is displayed, inserted, updated, deleted, or when a table is queried.
Business Rules execute on the server side.
Business Rules can be set to run before or after the database action has occurred.
What are Plugins?
Before adding script to ServiceNow, administrators should check the list of available plugins.
Plugins provide additional optional functionality within a ServiceNow instance.
Noget andre allerede har lavet. I princippet er alt plugins i ServiceNow.
What are Update Sets?
An Update Set is a group of customizations that can be moved from one instance of ServiceNow to another.
Update sets allow administrators to group a series of changes into a named set and then move them as a unit.
Every instance of ServiceNow has a Default Update Set, but users can create additional named sets.
What is captured in an Update Set?
Process Records:
- Business Rules
- Client Scripts
- Fields
- Forms and Form Sections
- Reports
- Tables
- Views
- Roles (men ikke hvem der har den)
- Published Workflows
What is NOT captured in an Update Set?
Data:
- New Data Records
- Modified Data Records
- Tasks
- Modified CIs
- New Users and Groups
- Schedules
- Scheduled Jobs
- Homepages
What are the most common processes required for integration?
The CMDB Incident Management Problem Management Change Management User Administration Single Sign-on
What is IntegrationHub?
IntegrationHub provides a single solution to quickly integrate with third party services to build and share content.
Features include:
- API management to throttle and control access to critical services.
- Analytics and reporting to gain insight into usage patterns.
- API exploration and discovery to ensure users know what is available and how to use it.
Which statement about a client script is true?
A: A client script always runs onLoad
B: A client script always runs on the client (Browser)
C: A client script always runs onSubmit
D: A client script always runs on the server (database)
B: A client script always runs on the client (Browser)