Why g_scratchpad code not working for me please check ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 06:44 AM
Business Rule
(function executeRule(current, previous /*null when async*/) {
// Add your code here
g_scratchpad.cLocation=current.caller_id.department.getDisplayValues();
})(current, previous);
On Load Client Script Code:-
function onLoad() {
//Type appropriate comment here, and begin script below
var department=g_scratchpad.cLocation;
alert("The Caller's Department " + department);
}
Please help me where is the mistake ???
It' shows like The Caller's Department Undefined ?? why
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 06:55 AM
Hi @1dusjhyahnt
you have a typo in your BR
can you please try (without the s at the end):
g_scratchpad.cLocation=current.caller_id.department.getDisplayValue();
Maik
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 07:00 AM - edited 12-18-2023 07:00 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 08:08 AM
Hi
at least on the server side it is working for sure:
Maik
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 05:20 PM