OCSeriesEventGenerator - Global

concept brazil Updated Sep 10, 2026 1 min read c_OCSeriesEventGeneratorAPI.md
Raw file servicenow.com

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.

Name Type Description
groupId String The group sys id.
rotaId String The rota sys id.
userId String The user sys id.
dateRangeObj Object Contains the from and to dates for the data set.
memberSchedules Object The user's schedule.
calendarLink String A link back to the on-call calendar in the instance.
Type Description
Array Array of the repeating on-call events.

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

Name Type Description
rotaScheduleSpanGR GlideRecord A cmn_schedule_span glide record for a rota.
memberScheduleSpanGR GlideRecord A cmn_schedule_span glide record for a rota member.
seriesStartTimes Array An array of the repeating rota span start times.
excludeItems Object The schedule items that need to be excluded.
repeatUntil String A formatted ScheduleDateTime string.
timeZone String Time zone for the on-call rota.
calendarLink String A link to the on-call calendar for this user.
Type Description
Array An array of VEVENTs that represent the on-call for the provided rotaScheduleSpanGR and the memberScheduleSpanGR.

Returns an array of the repeating on-call VEVENTS.

Name Type Description
rotaMemberGR GlideRecord A cmn_rota_member record.
seriesStartTimes Array An array of the repeating rota span start times.
excludeItems Object The schedule items that need to be excluded.
repeatUntil String A formatted ScheduleDateTime string.
calendarLink String A link to the on-call calendar for this user.
Type Description
Array An array of the repeating on-call VEVENTS
Search documentation
Search document titles and file paths on the brazil branch