- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 07:08 PM
Business Rule:
This BR runs fine, but I would like this to run in an onChange client script.
Client Script:
This client script does send the sys id to the script include.
Script Include:
The script include receives the location sys id, but never returns anything. The alert in the call back function above displays "undefined".
Can anyone spot what I am doing wrong?
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 07:40 PM
Hi @Rachel55 ,
it's your callback function on the client script
since you have used getXMLAnswer you don't have to parse the xml to get the answer
Try this
function SetAssignedTo(response){
alert(response)
}
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 08:26 PM
try to use this syntax
ga.getXMLAnswer(function(answer){
alert(answer);
});
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 07:40 PM
Hi @Rachel55 ,
it's your callback function on the client script
since you have used getXMLAnswer you don't have to parse the xml to get the answer
Try this
function SetAssignedTo(response){
alert(response)
}
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 08:26 PM
try to use this syntax
ga.getXMLAnswer(function(answer){
alert(answer);
});
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader