Search icon CANCEL
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 Application Development

You're reading from   ServiceNow Application Development Transform the way you build apps for enterprises

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787128712
Length 408 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sagar Gupta Sagar Gupta
Author Profile Icon Sagar Gupta
Sagar Gupta
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Introduction to ServiceNow FREE CHAPTER 2. User Administration 3. Data Management 4. Application Scopes 5. Modules, Forms, and Views 6. Introduction to ServiceNow Scripting 7. Client-Side Scripting 8. Server-Side Scripting 9. Jelly Scripting 10. Events and Notifications 11. Workflow Development 12. Debugging in ServiceNow 13. Advanced Database Features 14. Job Scheduling and Data Export-Import

Business rules


Let us create our first server-side script-a business rule. A business rule is a JavaScript code that is associated with a table, runs on the server, and is executed before, after, or asynchronously when a record is inserted, updated, deleted, or retrieved in the specified table.

The following business rule new record form has many fields and tabs available when the advanced checkbox is checked:

  • When to run
  • Actions
  • Advanced (this tab is available only when the Advanced checkbox is checked)
  • The business rule can execute based on the kind of database operations selected. One or more of the following different operations can be selected:
    • Insert
    • Update
    • Delete (Only available when the Advanced field is checked)
    • Query (Only available when the Advanced field is checked and cannot be aborted)
  • When: The When property is only available when the Advanced field is selected. When the Advanced field is unchecked, the When property defaults to Before. The When property of the business rule can be...
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