Now that we have learned about scripting and created some client-side scripts in the ServiceNow platform, let us start writing some server-side scripts to further enhance our application.
As discussed in the previous chapter, server-side scripts are JavaScript code that executes on the server and has access to a server-side glide API. We can employ a server-side API to enhance server-side data processing and integration with different systems. Server-side scripts can also be used to perform database operations and perform large scripted imports.
In this chapter, we will learn how to create server-side scripts, and when and where the server-side scripts come on the scene when working with ServiceNow applications. We will also learn how to make use of the server-side glide API and some of the most widely used functions available in it.
In this chapter, we will learn how to create the following server-side scripts:
- Business rules
- Script include
- Data policy