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:
This gives the following error:Code:ZAppointment appt = zMailbox.getAppointment(apptHit.getId());
Code:service.INVALID_REQUEST
com.zimbra.common.service.ServiceException: invalid request: missing required attribute: id
I also tried retrieving the ZMessage with:
Got the following error:Code:ZGetMessageParams msgParams = new ZGetMessageParams(); msgParams.setId(apptId); ZMessage appt = zMailbox.getMessage(msgParams);
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.


LinkBack URL
About LinkBacks

