You can only retrieve appointments for persons that are SuperOffice users (associates).The signed-in user must also have permission to view those appointments. Otherwise, an exception is thrown.
NSAppointment[] GetAppointmentList(Integer[] ids)
Fetches a collection of appointments corresponding to a list of IDs.
Integer[] appointmentIDs;appointmentIDs.pushFront(84);appointmentIDs.pushFront(86);appointmentIDs.pushFront(88);NSAppointmentAgent appointmentAgent;NSAppointment[] appointmentList = appointmentAgent.GetAppointmentList(appointmentIDs);for(Integer i = 0; i < appointmentList.length(); i++) { print("ID: " + appointmentList[i].GetAppointmentId().toString()); printLine("\t At: " + appointmentList[i].GetStartDate().toString() + " to " + appointmentList[i].GetEndDate().toString());}
You can also use the archive agent to fetch appointments.
Fetches a limited number of appointments within a time range for the given person. GetPersonDiary() will ignore appointments not shown in the user’s diary.