CSA · Question #156
Which statement correctly describes the differences between a Client Script and a Business Rule?
The correct answer is C. A Client Script executes on the client and a Business Rule executes on the server. This question differentiates between Client Scripts and Business Rules based on where they execute within ServiceNow.
Question
Which statement correctly describes the differences between a Client Script and a Business Rule?
Options
- AA Client Script executes before a record is loaded and a Business Rule executes after a record is
- BA Client Script executes on the server and a Business Rule executes on the client
- CA Client Script executes on the client and a Business Rule executes on the server
- DA Client Script executes before a record is loaded and a Business Rule executes after a record is
How the community answered
(44 responses)- B5% (2)
- C93% (41)
- D2% (1)
Why each option
This question differentiates between Client Scripts and Business Rules based on where they execute within ServiceNow.
This statement is incomplete and potentially misleading regarding execution triggers; Client Scripts can execute at various times, not just before a record is loaded, and Business Rules have multiple execution points (before/after/async).
This statement incorrectly reverses the execution locations; Client Scripts run on the client, and Business Rules run on the server.
Client Scripts execute on the client-side (web browser) to enhance user experience by running logic before or after form loads, on change of a field, or on form submission. Business Rules execute on the server-side (ServiceNow instance) when a record is inserted, updated, deleted, or queried, allowing for backend logic and data manipulation.
This statement is a duplicate of A and is incorrect for the same reasons.
Concept tested: Client-side vs. server-side scripting
Source: https://docs.servicenow.com/bundle/utah-application-development/page/script/client-scripts/concept/client-scripts.html
Topics
Community Discussion
No community discussion yet for this question.