- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2023 03:14 PM
Hello experts,
Hope you can help me with my query,
One of my flow designer action scripts is behaving differently and would like to print some variables and see what values I'm getting from them,
Please see the screenshot which I'm trying to print a log.
I was trying to use gs.debug / gs.info > no errors but couldn't find the values printed anywhere.
If you can guide me on what to use in the scripts (gs.debug / gs.info) and where can I see them once printed would be great.
Many thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2023 08:25 PM
Hi @Rajive ,
Use gs.info() because it supports in all the scopes.
You can also check the system logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 07:23 PM
Glad to know.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 07:35 AM
I came up with a solution, but it only works inside actions. I create an output field called debugging_output. Then I append to it anything that I would like to see. When walking through the flow and its children while testing, I click on this variable to see what it contains. It's not as straightforward as logging from a workflow, but it has helped me find issues many times. If you wanted to, you could, of course, log out the contents of this variable at the end of the action script.