- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 12:35 PM
Im using script step in flow designer to create actions. However whenever I use gs to try to log, nothing gets logged. I tried using gs.log, gs.debug, and gs.info - none of them seem to work. Please see the screen shots below of the script and test. Any idea whats going on here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 02:22 PM
Hi,
Use gs.info() because it supports in all the scopes.
I think you have to check the system logs table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 02:22 PM
Hi,
Use gs.info() because it supports in all the scopes.
I think you have to check the system logs table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 02:28 PM
Hey,
The log will be written out to the System Logs. If you review the docs here:
https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/concept/flow-execution-details.html
You can see that the logs in the execution details are different from the logging you are expecting when you use gs.info etc
Use the log entries to identify potential processing or performance issues. Each log entry has its own row displaying the creation date, log level, and log message. If the action does not generate any logs, the statistics displays the string No Logs.
Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2021 01:19 PM
How do you access the System Logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2021 01:41 PM
Hi,
Follow below the navigation,
Application navigator - system logs - system log - ALL
Check here and your values will be stored in the message column.