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 macros


A UI macro is similar to the HTML section of the UI page and consists of Jelly code. The UI macro, however, is not tied to any page, and can be reused in multiple places in the system, including (using g:insert, g:inline, or g:call) other UI macros and UI pages. It can also be added to a form by creating a formatter and adding it to the form. Let us now create our first UI macro.

In Studio, open the Create Application File wizard and select Forms & UI | Macro, as shown in the following screenshot, and click on the Create button:

It will bring us to the new record form for a UI macro. Fill in the form fields with the following values:

  • Name: international_notice (make sure the name doesn't contain any spaces)
  • API Name: (This will be automatically populated)
  • Description: Shows a link to state.gov site where end-users can find more details about their international trips
  • Active: Checked
  • XML: (Write the code mentioned after the following screenshot)
  • Protection policy: --None--

Write the...