Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ServiceNow Cookbook

You're reading from   ServiceNow Cookbook Acquire key capabilities for the ServiceNow platform

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781785880520
Length 376 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Dustin Turner Dustin Turner
Author Profile Icon Dustin Turner
Dustin Turner
Ashish Rudra Srivastava Ashish Rudra Srivastava
Author Profile Icon Ashish Rudra Srivastava
Ashish Rudra Srivastava
Arrow right icon
View More author details
Toc

Table of Contents (8) Chapters Close

Preface 1. Getting Started with Service-Now FREE CHAPTER 2. Performing Core Configuration and Management Tasks 3. Building Data-Driven Application 4. Configuring Alerts and Notifications 5. Building and Configuring Reports 6. Creating and Configuring Workflow Activities 7. Auditing and Diagnosing Service-Now

Working with background scripts


A background script is a place where you can test your server-side scripts, which is same as free text box. To access the background script, you should have a security_admin role with elevated privileges.

Getting ready

To step through this recipe, you should have an active Service-Now instance, valid credentials, and a security admin role.

How to do it...

  1. Open any standard web browser and type the instance address.

  2. On the left-hand side, type background in the search box and Service-Now will search the module for you.

  3. Click on the Scripts - Background module under System Definition application, as shown here:

    Background script module

  4. Now you will be able to see the following screen, where you can place your code and click on the Run  script button:

    Run script

  5. Service-Now has an inbuilt gs.print() function, which is used to view the output of the script and it also write an entry in a log file, but the gs.log () functions in write an entry in the system log and log file...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image