- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 06:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 06:14 PM
Hi
this is not possible for scripts which are executed in the background.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 06:13 PM
Hi,
Try by adding the log statements or you can try the same scripts in Background script with logs statement.
gs.log("message"); OR gs.info("message");
Check which results are you getting?
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 06:14 PM
Hi
this is not possible for scripts which are executed in the background.
Maik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 06:38 PM
Hi what exactly your trying to findout?
You can use gs.info() for scoped app or global app to print the logs and go to system logs and can check whether log is printed
Refer the below
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0752278
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 10:05 PM
Thank you for your answers. I know to use log, but it's a little troublesome It seems that can't use debug