How can I delete an Appointment via SOAP API ?
How can I delete an Appointment via SOAP API ?
How can I get all Appointment in my mail box by SOAP API ?
I used SearchRequest with type=appointment all result is all Conversation !![]()
to delete an item:
<ItemActionRequest op="delete" id="<appt-id>" />
are you setting the types attribute to appointment?
<SearchRequest types="appointment" xmlns="urn:zimbraMail">
<query>in:calendar</query>
</SearchRequest>
Thanks Sam !
I resolved my problem, but now I have new another problem :
How can I get fully an appointment.
I used GetAppointmentRequest by appointment id and Zimbra response this appointment, but not include attachment files and content of this appointment.
Is there any request to get this attachment files and content ?
Yes, I understood your idea.
GetMsgRequest useful while I create an Appointment (CreateAppointmentRequest)-with attach file- and Zimbra send invite message with this attach file.
But in other case, when I use SOAP set an Appointment (SetAppointmentRequest) - with attach file- it mean Zimbra will not send any invite message. Zimbra only return an Id of Appointment created.
I used GetAppointmentRequest to check id above, and response I had - an Appointment but not include attach file and appointment term.
How can I get attach file and term ?
We can't easily inline attachment content because XML doesn't allow non-UTF-8 content. To fetch your attachments, go to the UserServlet (http://server:port/service/home/~/?id=<id>&part=<part>) in the same manner that the web UI uses when you click on an attachment from an apointment.
It's hard to imagine.
Is there another way to get attchment file by SOAP ? Not like manipulate with UI above.
Ex: we can get content mail and attach file of these mail by SOAP, because mail of Zimbra support MIME message format, but can't get content appointment and attach file of these appointment.
But Appointment :
<ns2:GetAppointmentResponse ns2:id="563">
<ns2:appt ns2:rev="514" ns2:s="4406" ns2:l="10" ns2:uid="4183dcdf-0b1f-4742-8a6f-6af7383e607c" ns2:d="1168769987000" ns2:id="563">
<ns2:inv ns2:compNum="0" ns2:seq="1" ns2:id="567">
<ns2:tz ns2:stdoff="420" ns2:id="(GMT+07.00) Bangkok / Hanoi / Jakarta" />
<ns2:replies />
<ns2:comp ns2:name="Meeting minutes" ns2:x_uid="4183dcdf-0b1f-4742-8a6f-6af7383e607c" ns2:rsvp="0" ns2:fba="B" ns2:isOrg="1" ns2:apptId="563" ns2:status="CONF" ns2:fb="B" ns2:loc="Meeting room 2" ns2:transp="O" ns2:type="event" ns2:compNum="0" ns2:seq="1">
<ns2:s ns2:tz="(GMT+07.00) Bangkok / Hanoi / Jakarta" ns2:d="20070114T130000" />
<ns2:e ns2:tz="(GMT+07.00) Bangkok / Hanoi / Jakarta" ns2:d="20070114T140000" />
<ns2r ns2:url="minhlh@tdilx001.svl.ibm.com" />
<ns2:at ns2:role="REQ" ns2tst="NE" ns2:url="minhlh@tdilx001.svl.ibm.com" ns2:d="minh le" />
</ns2:comp>
</ns2:inv>
</ns2:appt>
</ns2:GetAppointmentResponse>
How can I get appointment content(body appointment) and attach file of an Appointment ?
Is there Zimbra support MIME format in Appointment ?
Use the REST interface (a.k.a. the UserServlet). I suggested using the UI to figure out which URL to fetch from, not that you should use the UI to do this!
Actually, I don't think you can get an appointment's content via SOAP. I think you have to go to do an HTTP GET to the REST interface to fetch attachment content.
I tried with following command but it did not delete the appointment.
<ItemActionRequest op="delete" id="375" /> I just got the error message Soap error message: 'ERROR: service.UNKNOWN_DOCUMENT: This id is the apptId , I have used.
Looking for help
There are currently 1 users browsing this thread. (0 members and 1 guests)