- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 08:54 PM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 09:08 PM
@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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 09:08 PM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 09:41 PM - edited 07-29-2024 09:42 PM
It works Thank you so much Sir for your help I appreciate it.