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

GlideUser


The GlideUser API class in ServiceNow provides methods that allow you to get information about the current user, their roles and permissions, and their preferences; all without needing to rely on much slower GlideRecord queries.

The GlideUser class has no constructor method, and instead it is generally declared by calling the GlideSystem method: gs.getUser(), which returns the GlideUser object.

getPreference() and savePreference()

The getPreference() method of the GlideUser class allows you to retrieve the value of one of the user's user preferences. User preferences are stored within the sys_user_preference table, and consist of things like how many records to display per page in a given list, or what update set is currently selected.

This method accepts one argument: a string containing the name of the preference to retrieve.

The getPreference() method returns a string containing the value of the preference requested, or null if no such preference is defined.

savePreference() on the...

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 R$50/month. Cancel anytime