Results 1 to 3 of 3

Thread: [SOLVED] Usage of method zimbraMailBox.getAppointment()

  1. #1
    Shikha Sood is offline Active Member
    Join Date
    Jul 2008
    New Delhi, India
    Rep Power

    Default [SOLVED] Usage of method zimbraMailBox.getAppointment()

    I am trying to get the list of attendees of an appointment. for this I get the summary of appoitmnet for today and then from there get the list of appointments. from list of appointmnets i get 1 appoitment and get its appointmnet id....
    Now I try to use the method zimbraMailBox.getAppointment() but it gives me an exception: invalid attribute:id

    My code is :

    List<ZApptSummaryResult> appSummaryResult = zimbraMailBox.getApptSummaries(null,1217390400000L , 1217476800000L, folderIds, TimeZone.getTimeZone("Europe/Brussels"),null);

    for (int i =0; i< appSummaryResult.size();i++){
    ZApptSummaryResult zAppSmR = appSummaryResult.get(i);
    System.out.println(zAppSmR.getFolderId()+"<--This is folder id");
    List<ZAppointmentHit> aapointmentList= zAppSmR.getAppointments();

    for(int j =0;j<aapointmentList.size();j++){
    ZAppointmentHit hit = aapointmentList.get(j);
    System.out.println("\nStart date"+hit.getStartDate());
    System.out.println("End date"+hit.getEndDate());
    System.out.println("Start time"+hit.getStartTime());
    System.out.println("End time"+hit.getEndTime());
    System.out.println("ConversationId"+hit.getConvers ationId());
    System.out.println("InviteComponentNumber"+hit.get InviteComponentNumber());
    System.out.println("SeriesComponentNumber"+hit.get SeriesComponentNumber());
    System.out.println("SeriesInviteId"+hit.getSeriesI nviteId());
    ZAppointment Zapp= zimbraMailBox.getAppointment(hit.getId());
    StringBuffer sb = new StringBuffer();
    List<ZInvite> list =Zapp.getInvites();
    for(int k =0; k<list.size(); k++){
    ZInvite zInvite = list.get(k);
    ZComponent component= zInvite.getComponent();
    List<ZAttendee> attenddes= component.getAttendees();

    for (int m = 0; m < attenddes.size(); m++) {
    ZAttendee participant = attenddes.get(m);
    System.out.println("List of Participant is:"+sb.toString());
    appointmentId = hit.getUid();



    Can somebody tell me what is the valid value of ID in zimbraMailBox.getAppointment(String id) method

  2. #2
    Nitish K Misra is offline Starter Member
    Join Date
    Aug 2008
    Rep Power


    I am also getting same problem. I have tried both calItemid(###) and InviteId(###-###).

  3. #3
    Shikha Sood is offline Active Member
    Join Date
    Jul 2008
    New Delhi, India
    Rep Power

    Default Link to post with anwser

    Though, I haven't tried it..........Somedya says this is how we shud go....
    Here's the link to the post

    [SOLVED] How to retrieve a single appointment java

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. zmtlsctl command not completing successfully
    By relay23 in forum Administrators
    Replies: 21
    Last Post: 07-10-2008, 12:07 AM
  2. [Installation] Zimbra Desktop - Ubuntu 8.04 Hardy
    By kaltera in forum Installation Help
    Replies: 1
    Last Post: 06-18-2008, 04:43 AM
  3. No response from Jetty on clean 5.02 OS install
    By cniknet in forum Administrators
    Replies: 0
    Last Post: 02-16-2008, 12:17 PM
  4. Zimbra dies after some time
    By czaveri in forum Installation
    Replies: 17
    Last Post: 04-07-2006, 07:45 AM
  5. Internal Mails Stop Working After a While
    By mintra in forum Administrators
    Replies: 30
    Last Post: 02-02-2006, 08:35 AM

Posting Permissions

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