NSAppointment GetContactAppointmentsByTasks(Integer contactId, DateTime startTime, DateTime endTime, Integer count, Integer taskIds)
Method that returns a specified number of appointments belonging to an array of appointment task types within a time range. The appointments belong to the contact specified. Task represents the different types of activities, like “Phone call”, “Meeting” and so on.
- contactId The contact id
- startTime The start of the time interval we want appointments from. This will usually be the current time.
- endTime The end of the time interval.
- count The maximum number of appointments that should be returned. -1 means no count restrictions.
- taskIds The task ids as an integer array. Task represents the different types of activities, like “Phone call”, “Meeting” and so on.
NSAppointmentAgent agent; Integer contactId; DateTime startTime; DateTime endTime; Integer count; Integer taskIds; NSAppointment res = agent.GetContactAppointmentsByTasks(contactId, startTime, endTime, count, taskIds);