Hello,
with the help of previous posts I can retrieve a list of ZAppointmentHits using ZMailbox.
However retrieving the actual appointment object escapes me. I have tried using:
Code:
ZAppointment appt = zMailbox.getAppointment(apptHit.getId());
This gives the following error:
Code:service.INVALID_REQUEST
com.zimbra.common.service.ServiceException: invalid request: missing required attribute: id
I also tried retrieving the ZMessage with:
Code:
ZGetMessageParams msgParams = new ZGetMessageParams();
msgParams.setId(apptId);
ZMessage appt = zMailbox.getMessage(msgParams);
Got the following error:
Code:mail.NO_SUCH_MSG
I have also tried prepending the appt ID with account ID separated by a colon. Still no joy.
Any suggestions welcome.