CSA · Question #5
Which statement is true about business rules?
The correct answer is B. A business rule can be a piece of Javascript. Business rules are server-side scripts in ServiceNow that can be written in JavaScript and execute when a record is displayed, inserted, updated, or deleted.
Question
Which statement is true about business rules?
Options
- AA business rule must run before a database action occurs
- BA business rule can be a piece of Javascript
- CA business rule must not run before a database action occurs
- DA business rule monitors fields on a form
How the community answered
(54 responses)- A4% (2)
- B89% (48)
- C6% (3)
- D2% (1)
Why each option
Business rules are server-side scripts in ServiceNow that can be written in JavaScript and execute when a record is displayed, inserted, updated, or deleted.
This is incorrect; business rules can run before, after, or asynchronously to a database action, not exclusively before.
Business rules are server-side scripts that allow for powerful automation and customization within ServiceNow, and they are indeed written using JavaScript. They can execute at various points relative to database operations, such as before, after, async, or on display.
This is incorrect; business rules *can* and often *do* run before a database action occurs (e.g., "before" insert/update).
This describes Client Scripts (onChange, onLoad, etc.) more accurately, which run on the client-side to monitor form fields, whereas business rules run on the server.
Concept tested: ServiceNow Business Rule characteristics
Source: https://docs.servicenow.com/bundle/utah-platform-administration/page/administer/business-rules/concept/c_BusinessRules.html
Topics
Community Discussion
No community discussion yet for this question.