Book Image

Learning ServiceNow

By : Sylvain Hauser
Book Image

Learning ServiceNow

By: Sylvain Hauser

Overview of this book

This book shows you how to put important ServiceNow features to work in the real world. We will introduce key concepts and examples on managing and automating IT services, and help you build a solid foundation towards this new approach. We’ll demonstrate how to effectively implement various system configurations 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 alerts and notifications, security, reporting, and custom development. You will learn how to improve your business’ workflow, processes, and operational efficiency. By the end of this book, you will be able to successfully configure and manage ServiceNow within your organization.
Table of Contents (21 chapters)
Learning ServiceNow
Credits
About the Author
About the Reviewer
www.packtpub.com
Customer Feedback
Preface

Chapter 11. Server-side Scripting

Server-side scripting in ServiceNow might seem easier than client-side scripting, because you don't have to worry about AJAX, asynchronysity, or large performance impacts for seemingly optimized queries. However, due to the expanded and adjusted functionality of server-side JavaScript, there are a few additional pitfalls to be mindful of.

Scripts that run on the server provide a great deal of power and control to the developer that's equipped to use them properly; however, they can also put great strain on the server if used improperly. Infinite loops and a great deal of in server-side scripts can be far more difficult to resolve than client-side issues. It's best to always be mindful of this fact when writing server-side scripts, and test your code thoroughly.

One way to test your server-side code is by using background scripts. This provides a script window that allows you to execute server-side scripts, similar to the client-side JavaScript executor. If...