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 11-19-2009, 01:42 AM
Junior Member
 
Posts: 9
Default Zimbra calendar SOAP interface

I'm using the Zimbra SOAP API to get todays appointments. I do also want the instance details so I could use those to detect unique items.

I have, in the day on which i'm searching 5 appointments, but when I search I get only 1 appointment, not 5. Some recurring items are left out. But on some occasions (other dates for example), they are not left out. So I don't understand the behavior of the SearchRequest on the appointments.

This is my SOAP Request:
Code:
<SOAP-ENV:Body>
    <SearchRequest xmlns="urn:zimbraMail" types="appointment" limit="500" fetch="all" calExpandInstStart="1258585200000" calExpandInstEnd="1258671599000">
      <query>appt-start:11/19/2009  sort:dateasc</query>
    </SearchRequest>
  </SOAP-ENV:Body>
I do saw this note in the documentation:
Code:
***IMPORTANT NOTE: Calendar Items that have no instances within
   that range are COMPLETELY EXCLUDED from the results (e.g. not even
   an <appt> element>.  Calendar Items with no data (such as Tasks
   with no date specified) are included, but with no instance
   information***
But because there are appointments on that day, I guess that they should not be excluded.

I see other people using GetApptSummariesRequest, but since the documentation says it's deprecated, I wanted to use SearchRequest, as it's mentioned. However I find it does not find all appointments.

Sorry for the lack of explaination, but at the moment I cannot do any better.

Last edited by ict4schools; 11-19-2009 at 02:05 AM..
Reply With Quote
  #2 (permalink)  
Old 11-19-2009, 02:08 AM
Junior Member
 
Posts: 9
Default

For the sake of debugging I have tried to use GetApptSummaryRequest, using the following request:
Code:
<SOAP-ENV:Body>
    <GetApptSummariesRequest xmlns="urn:zimbraMail" s="1258585200000" e="1258671599000"/>
  </SOAP-ENV:Body>
It gets me all the items (5 of them). But appart from the appointment, which was showed by the SearchRequest, the other items are empty. So I guess they do really don't have an instance between that start and end date.

How do I get all the appointments between begindate/time and enddate/time? With all items, even recurring?
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.