Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Can I tell what type of script is executing?
Is there some way quick way to know from SuiteScript exactly what sort of script is currently executing?
For example, if I have code that I want to reuse in a variety of different script types, is there any way for that code to know what sort of script is using it via some API call?
I'd like to know if the code is executing as part of a scheduled script, suitelet, userevent, restlet, etc.
0