官术网_书友最值得收藏!

Chapter 3. Server-Side Control

In the first few chapters, we've see how ServiceNow can hold your data. We've made a few tables, started to link it together, and collected it together in a new application. But simply storing data isn't going to make an award winning application.

So it's wonderful that ServiceNow also gives you great control over your data: you can check it, change it, or censor it using a variety of mechanisms. As we progress through this chapter, we'll see how information can be validated by a data policy, emailed out with notifications, or secured by an access control rule.

All of these are good options on their own, but ServiceNow also gives you complete control through code. You can write scripts to control almost any action you can think of. So the main focus of this chapter is to give you a good understanding of how server-side scripting in ServiceNow works. Here's how this chapter is structured:

  • We will start by diving into server-side JavaScript, including how to access the database. Scripts using GlideRecord are probably the most common in ServiceNow.
  • Business Rules are the starting point for logic in ServiceNow. We explore the different flavors by running through a variety of scenarios.
  • Script Includes provide a place for your code libraries. We will look at how you can define classes, extend them, and run them.
  • To really understand JavaScript in ServiceNow, we will explore the engine that powers the platform.
  • Finally, data policies and advanced reference qualifiers show other ways of controlling data access and logic.
主站蜘蛛池模板: 自贡市| 房山区| 隆安县| 晋江市| 卢氏县| 宝鸡市| 马山县| 岐山县| 玛纳斯县| 昌江| 于田县| 太白县| 阿尔山市| 陆丰市| 绥中县| 阿拉善左旗| 汉寿县| 南和县| 城固县| 温泉县| 元江| 商城县| 缙云县| 威远县| 尼勒克县| 宝应县| 乳山市| 称多县| 阿图什市| 彭泽县| 平邑县| 岢岚县| 定南县| 邹平县| 抚松县| 冀州市| 琼结县| 佳木斯市| 依兰县| 长治市| 林芝县|