Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-11-2008, 04:21 AM
Active Member
 
Posts: 45
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.
Reply With Quote
  #2 (permalink)  
Old 08-11-2008, 11:20 AM
Active Member
 
Posts: 45
Default

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

Anyone?
Reply With Quote
  #3 (permalink)  
Old 08-13-2008, 11:04 AM
Active Member
 
Posts: 45
Default

Can anyone help here?

Thank you.
Reply With Quote
  #4 (permalink)  
Old 08-13-2008, 12:02 PM
Zimbra Employee
 
Posts: 228
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!
Reply With Quote
  #5 (permalink)  
Old 08-15-2008, 10:20 AM
Active Member
 
Posts: 45
Default

Works great! Thank you very much.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.