Skip to content

Commit cce7214

Browse files
EmailAlert.js
1 parent bb9b303 commit cce7214

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#Business Rule
2+
(function executeRule(current, previous /*null when async*/) {
3+
4+
// Add your code here
5+
var userEmail=current.caller_id.email;
6+
g_scratchpad.callerEmail=userEmail;
7+
})(current, previous);
8+
9+
10+
#ClientScript
11+
function onLoad() {
12+
//Type appropriate comment here, and begin script below
13+
14+
var mail=g_scratchpad.callerEmail;
15+
alert("callers email address : "+mail);
16+
17+
}

0 commit comments

Comments
 (0)