Platform Scripting Flashcards
What are plugins?
Software components that provide additional optional features & functionality withing a ServiceNow instance
What is the recommendation before adding scripts in ServiceNow?
Check the list of available plugins
In which application can one look for available plugins?
System Definition > Plugins
How do we get a plugin that is only made available upon request?
By submitting a request using the Request Plugin Activation form at Now Support (HI)
What is Scripting in ServiceNow used for?
The customization of an instance and/or applications using JavaScript
What functionality is recommended to use for configurations instead of scripting?
Condition Builder
What are APIs?
Classes and methods that we can use in scripts to define and customize functionalities
What is an application or system that is used to access a remote server?
Web browser
How is a server defined?
A physical computer running one or more services, or a system running a database
Define Client-Side scripts in short
Scripts that run in the browser
Define Server side scripts in short
Scripts that run on the server (where the DB lives)
What is a round-trip?
Request + Response
Can we run a Client script when a database lookup is needed?
Yes
What are different types of supported Client scripts?
- onLoad()
- onChange()
- onSubmit()
- onCellEdit()
When does onLoad() run?
When a form is loaded and before a user can edit it.
When does onChange() run?
When the value of a field changes.
onChange() applies to fields rather than to forms
When does onSubmit() run?
When a form is
- saved
- submitted
- updated
- Used to validate that the values entered on a form make sense before saving
When does onCellEdit() run?
When a cell on a list changes value through use of the list editor