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
Kilo Patron

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

View solution in original post

Namrata Ghorpad
Mega Sage
Mega Sage

Hello,

Change the script like.

var a= current.caller_id.email;

gs.addInfoMessage(a);

View solution in original post

4 REPLIES 4

Mike_R
Kilo Patron
Kilo Patron

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

Tejas16
Tera Contributor

Business rule

 

Sunil31
Tera Expert

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);

 

Namrata Ghorpad
Mega Sage
Mega Sage

Hello,

Change the script like.

var a= current.caller_id.email;

gs.addInfoMessage(a);