How to access java packages from a scoped application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2020 10:34 AM
I am using the below code in a script include within a scoped application.
var timezone = Packages.java.util.TimeZone.getTimeZone(userTimeZone);
But this gives me this error message in runtime.
I want to know how can I access the java packages from any scoped application.
If this is not allowed, is there any alternative way?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2020 10:41 AM
Hi Abhryajyoti - You may find below thread helpful.
- Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2021 07:01 AM
Use a Script Include within the Global scope and be sure it is "Accessible from" "All application scopes". You can then call the global script from within other scoped applications.