Skip to content

Commit 18b5e28

Browse files
README.md
1 parent 264cd6c commit 18b5e28

File tree

1 file changed

+15
-0
lines changed
  • Server-Side Components/Business Rules/EmailAlert

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
**Overview**
2+
This implementation demonstrates how to display the Caller’s email address in an alert whenever an Incident form is loaded in ServiceNow.
3+
It uses a Business Rule to fetch the email and a Client Script to display it on the form.
4+
5+
Components:
6+
Business Rule: Fetches the Caller’s email and stores it in a temporary variable (g_scratchpad) to be used on the client side.
7+
Client Script (onLoad): Reads the email from g_scratchpad and displays it in an alert when the form is loaded.
8+
9+
Usage:
10+
Apply the Business Rule to the Incident tabl and add the Client Script (onLoad) to the same table.
11+
When an existing Incident record is opened, the Caller’s email will appear in a pop-up alert.
12+
13+
Result
14+
Existing Incident records show an alert with the Caller’s email address.
15+
New records do not trigger the alert.

0 commit comments

Comments
 (0)