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

OCRotaMember- Global

The OCRotaMember script include provide methods to perform maintenance operations on the On-call Member [cmn_rota_member] table.

Parent Topic:Server API reference

OCRotaMember - deactivateUser (String userId, GlideDateTime deactivateDate)

Deactivates the user's rota member records according to the deactivate date.

NameTypeDescription
userIdStringThe sys id of the user.
deactivateDateGlideDateTimeThe date from which the user's rotation is deactivated.
TypeDescription
void 

OCRotaMember - hasChanged (GlideRecord current, GlideRecord previous)

Checks whether the cmn_rota_member record has changed. Checks the Member, From, To, and Order fields have changed.

NameTypeDescription
currentGlideRecordThe latest changes made to the cmn_rota_member record.
previousGlideRecordThe original state of the cmn_rota_member record.
TypeDescription
void 

OCRotaMember - hasOrderChanged (GlideRecord current, GlideRecord previous)

On update of a cmn_rota_member record, checks whether the order of the record has changed.

NameTypeDescription
currentGlideRecordThe latest changes made to the cmn_rota_member record.
previousGlideRecordThe original state of the cmn_rota_member record.
TypeDescription
BooleanReturns true if the order has changed.

OCRotaMember - recalculate (GlideRecord current, GlideRecord previous)

Recalculates the schedule for the cmn_rota_member record.

NameTypeDescription
currentGlideRecordThe latest changes made to the cmn_rota_member record.
previousGlideRecordThe original state of the cmn_rota_member record.
TypeDescription
void 

OCRotaMember - validateDates (String from, String to)

Ensures that the From date occurs before or on the same date as the To date.

NameTypeDescription
fromStringFormatted date/
toStringFormatted date/
TypeDescription
BooleanReturns true if the From date is before or on same date as To date.