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 Display Modes
  #1 (permalink)  
Old 06-18-2009, 06:07 AM
Intermediate Member
 
Posts: 24
Default Creating recurring appointment

Hi there,

I have a little problem with creating recurrent appointments with SOAP. I would like to create a recurring appointment with exceptions (excluded days) in one request. I found out that it should be possible directly through the <recur> section in the <CreateAppointmentRequest>. So I made my request and got the following response:

Code:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <context xmlns="urn:zimbra">
            <sessionId id='1179180'>1179180</sessionId>
            <change token='68132'/>
            <notify seq='1'>
                <created>
                    <appt d='1245316935000'
                          uid='aebabf68-de38-469f-b6c8-14545fa43b46'
                          l='41505'
                          s='0'
                          id='42439'
                          rev='68132'>
                        <inv type='appt'
                             seq='7'
                             compNum='0'
                             id='42438'>
                            <comp d='1245316935000'
                                  class='PUB'
                                  loc='fgjj'
                                  transp='O'
                                  seq='7'
                                  uid='aebabf68-de38-469f-b6c8-14545fa43b46'
                                  fb='B'
                                  status='CONF'
                                  apptId='42439'
                                  fba='B'
                                  isOrg='1'
                                  calItemId='42439'
                                  noBlob='1'
                                  url=''
                                  compNum='0'
                                  rsvp='0'
                                  x_uid='aebabf68-de38-469f-b6c8-14545fa43b46'
                                  priority='1'
                                  name='fghjgfhj'>
                                <xprop value='e80f0e4183b1fa478c43b44d7765418b000000692af8'
                                       name='UID'/>
                                <recur>
                                    <add>
                                        <rule freq='WEE'>
                                            <count num='5'/>
                                            <interval ival='1'/>
                                            <byday>
                                                <wkday day='MO'/>
                                            </byday>
                                        </rule>
                                        <dates>
                                            <dtval>
                                                <s d='20090601T060000Z'/>
                                            </dtval>
                                        </dates>
                                        <dates>
                                            <dtval>
                                                <s d='20090629T060000Z'/>
                                            </dtval>
                                        </dates>
                                    </add>
                                </recur>
                                <s d='20090601T060000Z'/>
                                <e d='20090601T073000Z'/>
                            </comp>
                        </inv>
                        <replies/>
                    </appt>
                </created>
                <modified>
                    <folder i4ms='68132'
                            i4next='42440'
                            n='1'
                            s='0'
                            id='41505'/>
                </modified>
            </notify>
        </context>
    </soap:Header>
    <soap:Body>
        <BatchResponse xmlns="urn:zimbra">
            <CreateAppointmentResponse xmlns="urn:zimbraMail"
                                       apptId='42439'
                                       calItemId='42439'
                                       invId='42439-42438'/>
        </BatchResponse>
    </soap:Body>
</soap:Envelope>
Looking at the <dates> section we can see that there are theoretically some exceptions. But when I look at the created calendar item, it appears as a recurring appointment WITHOUT exceptions.

What I'm doing wrong??

thanks for your help.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0