The CreatorCon Call for Content is officially open! Get started here.

Help me with the Script include error

1__TapasviSinK
Tera Contributor

Hello team,

Please help me as i am stuck on this part , iam trying to get the email id of the caller when a person change the caller it should save under the field caller_email.now when i am  creating the Script include of get email id it throws the below attached error. 

3 REPLIES 3

SN_Learn
Kilo Patron
Kilo Patron

Hi @1__TapasviSinK ,

 

Please check the below:

Unable to find UI Action with name 'undefined' on table 'sys_script_include' in script include. 

 

Also, share your client script and script include to debug further.

 

Mark this as Helpful / Accept the Solution if this helps

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Script include code is 

var GetEmailID = Class.create();
GetEmailID.prototype = Object.extendsObject(AbstractAjaxProcessor, {
getEmail: function(){
test=this.getParameter('sysparm_value');
var x=new GlideRecord('sys_user');
x.addQuery('sys_id',test);
x.query();
if(x.next()){
return x.email();
}
},


type: 'GetEmailID'
});