How to get caller EmailID with the help of GlideRecord and dot walking in incident table?

Tejas16
Tera Contributor

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'.

 

 

 

 

2 ACCEPTED SOLUTIONS

Mike_R
Kilo Patron

how are you running this? Business rule? Also that first line in unnecessary 

View solution in original post

Not applicable

Hello,

Change the script like.

var a= current.caller_id.email;

gs.addInfoMessage(a);

View solution in original post

5 REPLIES 5

PriyanshuB80949
Tera Contributor
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.