Unable to use Packages.com.glide.schedules.Schedule property
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2018 08:46 AM
Security restricted: Attempted access to restricted class name com.glide.schedules
Evaluator: java.lang.SecurityException: Illegal attempt to access class 'com.glide.schedules' via script Caused by error in script at line 3 1: var schedRec = new GlideRecord('cmn_schedule'); 2: schedRec.get('name', '8-5 weekdays'); ==> 3: var sched = new Packages.com.glide.schedules.Schedule(schedRec.sys_id);
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 06:53 AM
I tried var sched = new GlideSchedule(schedRec.sys_id) and I'm still getting Illegal attempt to access class 'com.glide.glideobject' via script
Is there a way to avoid this?
Lisa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 07:02 AM
This seemed to have worked: var sched = new GlideSchedule();
sched.load('sys_id of the schedule'); //sys_id of the schedule used i.e. Mon - Fri

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 07:04 AM
Please Mark my Answer as Helpful, so that it can help Others in Future.
Thank you
Aman Gurram

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 07:15 AM
Please mark my Answer as Helpful if it helped you. So that it can be helpful for others in Future.
Thank you,
Aman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 08:38 AM
I tried var sched = new GlideSchedule();
sched.load('sys_id of the schedule'); //sys_id of the schedule used i.e. Mon - Fri as well and I'm still getting this error.