gs.info('x') gs.debug('x') no output in Fix Script in Scope App
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2019 11:29 AM
I'm just starting to play around with scoped applications. I put together what should be a no-brainer fix-script which echoes back the content of a column as a result of a GlideRecord query, but the gs.info() statement in the loop returned no output. After a while I realized that the issue was not with the GlideRecord query, but due to the fact that gs.info() will not print anything in the console. Even:
gs.info('Hello World');
prints nothing. Is there a trick to Fix Scripts in Scoped Applications to get these types of statements to give output?
TC
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2019 03:18 PM
gs.info() will end up in System Logs >> Application Logs instead of Script Log Statements.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2019 03:23 PM
Please take a look at this:
https://www.servicenowelite.com/blog/2018/9/18/logging-for-scoped-applications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2019 03:32 PM
Thanks, guys. So my take away is that if I want to see the immediate output of my code, I will need to use a background script or XPlore toolkit.