Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Script Include

Rishabh_N
Tera Contributor

I have written some code for a GlideAjax call in ServiceNow but it's not executing as expected.

Can anyone help me identify the problem? I have shared screenshots.

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Rishabh_N Here are the two changes for your code.

 

1. Script Include : Please replace line number 11 with the following code.

return gr.getValue('email');

2. Client script: replace line number 16 with the following.

var answer = response.responseXML.documentElement.getAttribute('answer');

 

Please see if these changes work for you.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Rishabh_N Here are the two changes for your code.

 

1. Script Include : Please replace line number 11 with the following code.

return gr.getValue('email');

2. Client script: replace line number 16 with the following.

var answer = response.responseXML.documentElement.getAttribute('answer');

 

Please see if these changes work for you.

It works Thank you so much Sir for your help I appreciate it.