Results 1 to 5 of 5

Thread: [SOLVED] How to retrieve a single appointment java

  1. #1
    skenkin is offline Active Member
    Join Date
    May 2008
    Posts
    45
    Rep Power
    7

    Default [SOLVED] How to retrieve a single appointment java

    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.

  2. #2
    skenkin is offline Active Member
    Join Date
    May 2008
    Posts
    45
    Rep Power
    7

    Default

    Is there a documented search syntax for searching by ID with "zMailbox.getAppointments" method?

    Anyone?

  3. #3
    skenkin is offline Active Member
    Join Date
    May 2008
    Posts
    45
    Rep Power
    7

    Default

    Can anyone help here?

    Thank you.

  4. #4
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    9

    Default

    I think you want to do a getMessage using apptHit.getInviteId() as the id, then get the appointment via msg.getInvite().getComponent().
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    skenkin is offline Active Member
    Join Date
    May 2008
    Posts
    45
    Rep Power
    7

    Default

    Works great! Thank you very much.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Printing a single appointment
    By xtrem in forum Developers
    Replies: 3
    Last Post: 04-23-2009, 09:00 AM
  2. Replies: 4
    Last Post: 10-22-2007, 01:42 PM
  3. Tomcat, Java VM Problems - RAM related? Help
    By Mo_Hong in forum Administrators
    Replies: 3
    Last Post: 03-28-2007, 02:00 PM
  4. Java 1.5 crashing on PPC Mac 10.4.8
    By bradn in forum Installation
    Replies: 1
    Last Post: 12-08-2006, 06:27 PM
  5. Replies: 0
    Last Post: 12-04-2005, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •