Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

OCSeriesEventGenerator- Global

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

Parent Topic:Server API reference

Returns an array of the repeating on-call events.

NameTypeDescription
groupIdStringThe group sys id.
rotaIdStringThe rota sys id.
userIdStringThe user sys id.
dateRangeObjObjectContains the from and to dates for the data set.
memberSchedulesObjectThe user's schedule.
calendarLinkStringA link back to the on-call calendar in the instance.
TypeDescription
ArrayArray of the repeating on-call events.

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

NameTypeDescription
rotaScheduleSpanGRGlideRecordA cmn_schedule_span glide record for a rota.
memberScheduleSpanGRGlideRecordA cmn_schedule_span glide record for a rota member.
seriesStartTimesArrayAn array of the repeating rota span start times.
excludeItemsObjectThe schedule items that need to be excluded.
repeatUntilStringA formatted ScheduleDateTime string.
timeZoneStringTime zone for the on-call rota.
calendarLinkStringA link to the on-call calendar for this user.
TypeDescription
ArrayAn array of VEVENTs that represent the on-call for the provided rotaScheduleSpanGR and the memberScheduleSpanGR.

Returns an array of the repeating on-call VEVENTS.

NameTypeDescription
rotaMemberGRGlideRecordA cmn_rota_member record.
seriesStartTimesArrayAn array of the repeating rota span start times.
excludeItemsObjectThe schedule items that need to be excluded.
repeatUntilStringA formatted ScheduleDateTime string.
calendarLinkStringA link to the on-call calendar for this user.
TypeDescription
ArrayAn array of the repeating on-call VEVENTS