Book Image

ServiceNow Application Development

By : Sagar Gupta
Book Image

ServiceNow Application Development

By: Sagar Gupta

Overview of this book

ServiceNow provides service management for every department in the enterprise, including IT, Human Resources, Facilities, Field Service, and more. This book focuses on all the steps required to develop apps and workflows for any of your business requirements using ServiceNow. You will start with the first module, which covers the basics of ServiceNow and how applications are structured; how you can customize the dashboard as required; and also how to create users. After you get used to the dashboard, you will move on to the next module, Applications and Tables, where you will learn about working with different tables and how you can create a scope other than the global scope for your application. The next module is Scripting and APIs, where you will learn Scripting in ServiceNow and use powerful APIs to develop applications. The final module, Administration Essentials, covers debugging, advanced database features, and scheduled script creation. By the end of the book you will have mastered creating organized and customer-friendly applications
Table of Contents (21 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
1
Introduction to ServiceNow

UI actions


Let us now create a server-side UI action. A UI action can be invoked from different UI elements, such as form buttons, form list context menus, form-related links, list of records header context menus, list actions menus, or list-related links. UI actions are usually server-side code, and can make use of script includes and other server-side client APIs. However, it is also possible to mark a UI action to run on client- and write- and use-only client-side glide APIs.

For the purpose of this book, we will create server-side UI actions. Our goal is to provide a button on the top of the form, in the form header and context menu, to allow users to set the state of a pending or open booking request as a work in progress.

To create a new UI action, open Studio, select Server Development | UI Action from the Create Application File wizard, and click Create:

Fill in the UI action New Record form with the following values:

  • Name: In Progress
  • Table: Booking Request
  • Action name: mark_in_progress...