Scoped GlideSchedule - getName()

Retrieves the schedule name.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The name of the current schedule.
sys_id ='04e664654a36232701a2247dcd8fc4cf'; // sys_id for "Application" schedule record
var sched = new GlideSchedule(sys_id);
gs.info(sched.getName());