Missing answer or result from Script Include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi,
I've a script include which shows the log of the required output but when called through script include it shows null.
Script include (Client Callable):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
As with troubleshooting any script, add some gs.info logs to the Script Include to ensure it is running, confirm the value of sysId passed in from the client, see if the GlideRecord is returning any records... You should also confirm there are no other Script Includes with the same name, and fix the return - if you are wanting to return the value in the 'name' field on this record, it's just:
return val;
Which you can only call once after the GlideRecord if block, if you declare and initialize the val script variable prior to the GlideRecord return, where all variables should be declared.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Not able to understand this coding this.getXMLAnswer in script include
in script include, please return val.
return val;
then in client code add
alert(response);
if in response any value is coming , you can use json.parse(response) to get the answer in correct format.
