Book Image

Learning ServiceNow. - Second Edition

5 (1)
Book Image

Learning ServiceNow. - Second Edition

5 (1)

Overview of this book

This book is an updated version of Learning ServiceNow, that will cover the new and updated features of the ServiceNow platform. It will show you how to put important ServiceNow features to work in the real world, while introducing key concepts via examples of managing and automating IT services. It'll help you build a solid foundation of knowledge, and will demonstrate how to effectively implement and configure modules within ServiceNow. We'll show you how to configure and administer your instance, and then move on to building strong user interfaces and creating powerful workflows. We also cover other key elements of ServiceNow, such as notifications, security, reporting, and custom development. You will learn how to improve and automate your business' workflow and processes. By the end of this book, you will be able to successfully configure and manage ServiceNow like a pro.
Table of Contents (19 chapters)
Learning ServiceNow Second Edition

Client scripts

Client scripts are not the only example of client-side scripting, but they're probably the most ubiquitous (hence the name). A client script is a snippet of JavaScript that's sent from the server to the user's browser, to be executed client-side.

Keep in mind that any time a UI policy can effectively reproduce the desired functionality that you might otherwise use a client script for, it is best to use the UI policy. However, more advanced functionality often requires the use of more advanced conditions or functionality. That is where client scripts come in!

As a general rule, a well-written client script will return control of the browser to the user very quickly, and perform any server lookups asynchronously. This includes looking up properties from the server, performing GlideRecord queries, and handling time-zones.


Pro tip

We've written a script specifically for handling time-zones in ServiceNow, both from server-side and client-side scripts! You can find this free tool...