Help me with the Script include error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 05:08 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 08:58 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2024 02:43 PM
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'
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 09:07 PM
Refer below links and try troubleshooting this issue :
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.