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

REST calls using a workflow


Now that we have learned the basics of workflows, let us now create a workflow that will use the REST Message activity to make a call to a remote REST endpoint to get the weather conditions at the From and Destination locations. However, before we create the workflow, we must define the REST endpoint in the REST Message module.

Defining a REST endpoint

We must define every REST endpoint using the REST Message module. To define the REST endpoint, open Studio and in the Create Application File wizard, select Outbound Integrations | REST Message, as shown in the following screenshot, and click Create:

The REST Message new record form, as shown in the following screenshot, will open in Studio:

Fill in the form with the following values:

  • Name: Yahoo Weather
  • Accessiblefrom: All application scopes
  • Endpoint: https://query.yahooapis.com/v1/public/yql

Click on the Submit button to create the endpoint definition. Now scroll down to the HTTP Methods related list, as shown in the...