Options
- 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.
2 ACCEPTED SOLUTIONS
Options
- 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
Options
- 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);
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
var em=current.caller_id.email();
this will highly likely solve the issue.
to give you a brief we are pointing to current callers id and using that further point to email property of the caller .
Please mark this helpful if it seems fit to you , Tejas.