where do I see an execution log of RESTlet scripts...
# ask-stanley-ai
i
where do I see an execution log of RESTlet scripts that are triggered via API requests?
c
AI generated answer (using internal Slack threads):
To see an execution log of RESTlet scripts that are triggered via API requests, you can follow these steps: 1. In your RESTlet, include
log.debug()
statements where you want to capture information. These statements will write to the log when the script is executed. 2. Check the logging level on your script deployment. The logging level determines what types of messages are written to the log. For example, if the logging level is set to 'Error', only error messages will be logged. If it's set to 'Debug', all messages including debug messages will be logged. 3. The logs can be viewed in the Script Execution Log in NetSuite. Please note that when a script is moved from testing to released, the system changes the default logging to 'Error'. Also, if a RESTlet has status
testing
, it can still be called and it runs for the specified audience/roles but only on the account of the script owner. If you want to check if NetSuite is executing/processing a RESTlet at the current time, you could create a custom 'restlog' record. The first thing the RESTlet does is create a new restlog, then pushes details into the notes. You know the RESTlet is running if the restlog isn't closed. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837768555
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832275391
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830322266
Please provide your feedback on this answer.
Thank you for your feedback
Thank you for your feedback