The OCSeriesEventGenerator script include provide methods to generate the repeating VEVENTS for a user's iCalendar.

OCSeriesEventGenerator - getMemberCalendar (String groupId, String rotaId, String userId, Object dateRangeObj, Object memberSchedules, String calendarLink)

Returns an array of the repeating on-call events.

Table 2. Returns
Type Description
Array Array of the repeating on-call events.

OCSeriesEventGenerator - getRosterICalEvents (GlideRecord rotaScheduleSpanGR, GlideRecord memberScheduleSpanGR, Array seriesStartTimes, Object excludeItems, String repeatUntil, String timeZone, String calendarLink)

Returns an array of VEVENTs that represent the on-call for the provided rotaScheduleSpanGR and the memberScheduleSpanGR.

Table 4. Returns
Type Description
Array An array of VEVENTs that represent the on-call for the provided rotaScheduleSpanGR and the memberScheduleSpanGR.

OCSeriesEventGenerator - getRosterMemberEvents (GlideRecord rotaMemberGR, Array seriesStartTimes, Object excludeItems, String repeatUntil, String calendarLink)

Returns an array of the repeating on-call VEVENTS.

Table 6. Returns
Type Description
Array An array of the repeating on-call VEVENTS