Results 1 to 9 of 9

Thread: can't get shared contacts or appointments

  1. #1
    Join Date
    Apr 2007
    Posts
    13
    Rep Power
    8

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

  2. #2
    Join Date
    Sep 2005
    Location
    Sunnyvale, CA
    Posts
    269
    Rep Power
    10

    Default

    Add "is:remote OR is:local" to the query string.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    10

    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!

  4. #4
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    10

    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!

  5. #5
    Join Date
    Apr 2007
    Posts
    13
    Rep Power
    8

    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?

  6. #6
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    10

    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!

  7. #7
    Join Date
    Apr 2007
    Posts
    13
    Rep Power
    8

    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?

  8. #8
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    10

    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!

  9. #9
    Join Date
    Apr 2007
    Posts
    13
    Rep Power
    8

    Talking working

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

    Thanks very much for your help.

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  2. Replies: 1
    Last Post: 02-01-2007, 11:09 AM
  3. Is it just me? (Shared Contacts in Outlook)
    By russgalleywood in forum Administrators
    Replies: 13
    Last Post: 11-16-2006, 10:55 AM
  4. Shared Contacts Error
    By Mo_Hong in forum Administrators
    Replies: 2
    Last Post: 10-31-2006, 09:41 AM
  5. Per-Domain Shared Contacts and Calendars?
    By LMStone in forum Administrators
    Replies: 2
    Last Post: 09-14-2006, 07:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •