- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-28-2024 02:10 AM
Hi
How would i Show Alert message on creating an incident record it should display the caller's location. By using g_scratchpad in BusinessRule and client script..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-28-2024 03:43 AM
@Rajkumar Bommal - ah apologies, it was the caller's location not the current user.š
If so, you can update the BR to
(function executeRule(current, previous /*null when async*/ ) {
var userGr = new GlideRecord("sys_user");
userGr.get(current.getValue('caller_id'));
g_scratchpad.currentLocation = userGr.getDisplayValue('location');
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-28-2024 03:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-28-2024 03:26 AM
Are you impersonating as Abel Tuter? I tried it on my PDI and once again, it's working fine
Can you also share a screenshot of the BR as well? (including its table, when to run)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-28-2024 03:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-28-2024 03:31 AM
@James Chun
No Am not impersonating as Abel Tuter.
am Working with my sys administrator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-28-2024 03:32 AM
Yea, that might be it then. It prompts the current user's location. Does the system admin account has a location populated? If not, update it and try it again