Scripting Overview (Modules 1-5)
What is the purpose of scripts to perform on the Client Side(Browser)?
- Auto populate a field based on the value of another field - Show/hide form sections Ref: SSFB pg. 12
What is the purpose of scripts to perform on a MID server?
- Integrate to a 3rd party application
What is the best strategy for updating baseline scripts?
- Make a copy of the record you want to update. - Make the original record inactive - Make changes to the script in the copy Ref: SSFB pg. 10
What is the purpose of scripts to perform on the Server Side?
- Modify a database record - Generate an event Ref: SSFB pg. 12
What is an Application Scope?
-Determines which of its resources are available to other applications Ref: SSFB 40
When should you script?
-When you want to add functionality -Extend existing functionality -Guide Users -Automate processes -Interact with 3rd party applications Ref: SSFB pg. 9
What are the 5 W's for scripting?
-Who can script? -What is platform scripting? -When should you script? -Where do scripts execute? -Why should you avoid scripting? Ref: SSFB pg. 5
Who are the 3 positions that can create scripts? And what exactly can they manage with scripts?
1. System Administrator: manages all the features, applications, and data in the platform. 2. System Definition Administrator: Manages a specific System Definition (Ex: Can only manage business rules) 3. Application Administrator: Manages all the features and data of an application. Ref: SSFB pg. 11
Application developers can specify what parts of an application are accessible to other applications from which two tables? a. The Custom Application Record b. The Development Application Record c. Each Application Table Record d. Any Table Record
A & C. Ref: SSFB pg. 41
Artifacts are called _____________ ____________ in an application
Artifacts are the Application Files in an application. Ref: SSFB pg. 41
Why should you avoid scripting? a. Easier to debug and fix a configuration changes after an upgrade b. Scripting is hard c. Scripting will destroy your instance d. What you have scripted may not need scripting in the upgrade. e. A and D
E. You should avoid scripting because it can make it easier to debug and fix a configuration change after an upgrade and scripts also could become irrelevant in the next upgrade. Ref: SSFB pg. 8
Once a scope is assigned to an application is can be changed if needed. True or False
FALSE. Once a scope is assigned to an application, IT CANNOT BE CHANGED! Ref: SSFB pg. 40
What is platform scripting?
Platform scripting in relation to ServiceNow means that it encompasses all the necessary components, application programming interfaces and libraries required by programmers and developers to author, compile, debug and execute language-specific applications. Ref: SSFB pg. 7
Out-of-scope scripts are read-only True False
True Ref: SSFB pg. 43
Applications in the global scope do not append a unique namespace identifier to the application name. True False
True. Ref: SSFB pg. 42
Scoped application artifacts always begin with __________
x___ is the beginning of the identifier for any scoped application artifact. Ref: SSFB pg. 42