Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ServiceNow: Building Powerful Workflows

You're reading from   ServiceNow: Building Powerful Workflows Automating IT Service Management

Arrow left icon
Product type Course
Published in Aug 2017
Publisher Packt
ISBN-13 9781788628730
Length 1330 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Tim Woodruff Tim Woodruff
Author Profile Icon Tim Woodruff
Tim Woodruff
Martin Wood Martin Wood
Author Profile Icon Martin Wood
Martin Wood
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 (39) Chapters Close

Title Page
Credits
Preface
1. Module 1 FREE CHAPTER 2. The Interface 3. Lists and Forms 4. UI Customization 5. Understanding Data and Relationships 6. Tasks and Workflows 7. UI and Data Policies 8. User Administration and Security 9. Introduction to Scripting 10. The Server-side Glide API 11. The Client-side Glide API 12. Server-side Scripting 13. Client-side Scripting 14. Debugging 15. Pro Tips 16. Module 2 17. Getting Started with Service-Now 18. Performing Core Configuration and Management Tasks 19. Building Data-Driven Application 20. Configuring Alerts and Notifications 21. Building and Configuring Reports 22. Creating and Configuring Workflow Activities 23. Auditing and Diagnosing Service-Now 24. Module 3 25. ServiceNow Foundations 26. Developing Custom Applications 27. Server-Side Control 28. Client-Side Interaction 29. Getting Things Done with Tasks 30. Events, Notifications, and Reporting 31. Exchanging Data – Import Sets, Web Services, and other Integrations 32. Securing Applications and Data 33. Diagnosing ServiceNow – Knowing What Is Going On 34. Packaging with Applications, Update Sets, and Upgrades 35. Making ServiceNow Beautiful with Service Portal and Custom Interfaces 36. Bibliography

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

  1. 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

 

  1. 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