- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 07:25 AM
I want to get a caller Email ID using server side script?
I tried
var inc=new GlideRecord('incident');
var a=current.caller_id.email;
gs.addInfoMessage(a);
But it stores undefined value in variable 'a'.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 07:34 AM
how are you running this? Business rule? Also that first line in unnecessary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 07:48 AM
Hello,
Change the script like.
var a= current.caller_id.email;
gs.addInfoMessage(a);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 07:34 AM
how are you running this? Business rule? Also that first line in unnecessary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 11:23 PM
Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 07:37 AM
Hello Tejas,
Can you try following code, see if that works.
var inc=new GlideRecord('incident');
var a=inc.caller_id.email;
gs.print(a);
//gs.addInfoMessage(a);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 07:48 AM
Hello,
Change the script like.
var a= current.caller_id.email;
gs.addInfoMessage(a);