Get follow-ups belonging to a series
NSAppointment[] GetAppointmentRecords(Integer motherId, Integer recurrenceRuleId)
Integer recurrenceId = 1;
NSAppointmentAgent appointmentAgent;
NSAppointment[] appointmentList = appointmentAgent.GetAppointmentRecords(0,recurrenceId);
for(Integer i = 0; i < appointmentList.length(); i++) {
printLine("ID: " + appointmentList[i].GetAppointmentId().toString() + "\t At: " + appointmentList[i].GetStartDate().toString());
}
🛈 Tip
Set
motherId to 0 unless you’re working with meeting invitations.