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

GlideUser (g_user)


The GlideUser class is available to client scripts as the g_user object, which is initialized to the current user that's signed in.

The GlideUser client-side API gives you easy access to determining certain details about the user, including the user's name, roles, sys_id, and a method for getting access to client data set via the putClientData() API on the server.

The GlideUser (g_user) API is particularly useful because it eliminates the need to execute client-side GlideRecord queries, which are costly in terms of performance or slow in terms of execution time.

Getting user details

A fair amount of the user's profile details can be gleaned from the GlideUser (g_user) API, as they are cached when the page is loaded.

There is a method to access the user's full name: getFullName(). This method accepts no arguments, but returns a string containing the current user's full name.

The user's first and last name are available via properties. Properties can be access directly without...