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 05-01-2007, 02:23 PM
Member
 
Posts: 13
Question can't get shared contacts or appointments

I'm doing a SOAP call to get all contacts, and I need it to include any shared address books that the user subscribes to.

When I do GetApptSummariesRequest, it excludes items in shared address books.

Ditto for appointments on calendars.

How do retrieve a list of appointments or contacts that includes items that are shared to the user?

I've just wasted an entire morning scouring documentation, and I'm betting there's a simple answer out there...
Reply With Quote
  #2 (permalink)  
Old 05-01-2007, 11:14 PM
Zimbra Employee
 
Posts: 269
Default

Add "is:remote OR is:local" to the query string.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 05-02-2007, 12:12 AM
Zimbra Employee
 
Posts: 93
Default

Did you really mean <GetApptSummariesRequest>? That doesn't return contacts....are you trying to get Calendar items, or Contacts?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #4 (permalink)  
Old 05-02-2007, 12:16 AM
Zimbra Employee
 
Posts: 93
Default

For contacts, you want to do a <SearchRequest> for types="contact" with a search string "is:remote or is:local".

Unfortunately, in 4.5 for calendar items, you'll need to get the entire folder hierarchy <GetFolderRequest visible="1">... and then call <GetApptSummaries l="folder"/> for every folder that has a view="appointment". Things will get a lot better when 5.0 comes out as we've unified appointment search with contact search -- you'll be able to get them all from <SearchRequest>....but until then you'll have to do it the hard way.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 05-03-2007, 10:42 AM
Member
 
Posts: 13
Talking almost there...

Thanks so much for the reply. The 'is:local OR is:remote' did the trick.

I need to get contacts and appointments in 2 separate calls, and I've got the contacts working OK now.

I can retrieve the appointments, but the results don't include <inst /> instances like I need. The documentation says that expanded instance data is included "only if calExpandInstStart and calExpandInstEnd are requested in the SearchRequest".

I'm specifying those in the SearchRequest like:
<SearchRequest types="appointment" calExpandInstStart=1234 calExpandInstEnd=1234>

Is there somewhere else I need to specify those?
Reply With Quote
  #6 (permalink)  
Old 05-03-2007, 10:44 AM
Zimbra Employee
 
Posts: 93
Default

Are you using the 5.0 documentation from SVN against a 4.5 server? The calExpand... APIs don't work w/ 4.5 servers, you have to use <GetAppointmentSummariesRequest>
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #7 (permalink)  
Old 05-03-2007, 11:38 AM
Member
 
Posts: 13
Smile GetAppointmentSummariesRequest

Yes -- it looks like I am looking at documentation for the next version, but using it against 4.5

So the trick for appts from shared calendars is to specify a shared folder using l="xxx" and that'll do it?
Reply With Quote
  #8 (permalink)  
Old 05-03-2007, 12:07 PM
Zimbra Employee
 
Posts: 93
Default

yup


btw -- a really useful trick for figuring stuff out is to look at what the web client sends/receives. Connect your web client to the server with a URL like this:

http(s)://yourserver.com/?gzip=false&mode=mjsf&debug=1

You should see a debug window pop up -- it will show you the Soap traffic to the server, and the json traffic back.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #9 (permalink)  
Old 05-05-2007, 10:45 AM
Member
 
Posts: 13
Talking working

Got everything working now. It will be nice when 5.0 is released.

Thanks very much for your help.
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.