QuestionQ7

VerifiedManaging Applications

What benefits result from storing most of an Application’s server-side script logic in a Script Include?

a. This makes execution faster. b. The logic only runs when called from a script. c. The script logic can be hidden when the Application is installed from the ServiceNow Store. d. For some changes to application logic there is only one place to make edits.

Explanation

Script Includes store reusable server-side functions and classes. They are loaded only on request, so their logic runs only when another script calls it (b). A Script Include with the Protected protection policy hides its script from customers who install the application, which protects the developer's intellectual property (c). Because the shared logic is defined once and called from many scripts, a change to that logic is made in a single place (d). Storing logic in a Script Include is a matter of organization and reuse; it does not by itself make the code execute faster (a).

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!