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 07-04-2008, 04:55 AM
Active Member
 
Posts: 35
Default searchRequest response for appointments

Hello,
When i get this response
Code:
<ns0:appt md="1215155395" dur="21600000" status="CONF" ptst="AC" d="1215155395000" 
fba="B" fb="B" sf="1215155395000" ms="11296" id="1202" f="" t="" invId="1202-1201" 
uid="70ed574-75a44f59-bca3493-25f38c99" compNum="69" isOrg="1" 
name="Barbec Pat" score="1.0" cm="1" s="4933" l="1064" 
x_uid="70ed574-75a44f59-bca3493-25f38c99" loc="Tancrmont" rev="11296" class="PUB" transp="O"/>
Where is the start date of the appointment ( i supose it is an epoch number but which one...) I can't find one that fit the real date!

Thanks for your help

Last edited by chipmunk; 07-13-2008 at 11:27 PM..
Reply With Quote
  #2 (permalink)  
Old 09-12-2008, 10:35 AM
New Member
 
Posts: 4
Default

any word on this?

i would assume that d= is the epoch date that the appointment starts but, in all the xml i get returned, it looks like this is the date the appointment was created on. md= looks like the epoch date of when the appointment was last modified.

it seems odd that you get the duration as dur= but, no start point to reference it from. any help would be much appreciated.
Reply With Quote
  #3 (permalink)  
Old 09-12-2008, 10:45 AM
New Member
 
Posts: 4
Default

i found that you can get the start/end times by using GetAppointmentRequest and specifying the id (returned as the e/s attributes under comp).

in the interest of efficiency, is there a way to get this information using SearchRequest? (in lieu of looping over the results of SearchRequest and generating a GetAppointmentRequest for each)

thanks,
Reply With Quote
  #4 (permalink)  
Old 09-14-2008, 11:28 PM
Active Member
 
Posts: 35
Default

Code:
   my %getApptSumAttrs = (
        'types'              => 'appointment',
        'offset'             => '0',
        'calExpandInstStart' => "$start",
        'calExpandInstEnd'   => "$stop"
    );

    $d = new XmlDoc;
    $d->start( 'SearchRequest', $self->{mailns}, \%getApptSumAttrs );
These are the parameters i give in perl!
the calExpandInstStart and End give all the informations about the instaces of the appointments inside the response!
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.