Results 1 to 2 of 2

Thread: SearchCalendarResourcesRequest change in Zimbra 7?

Threaded View

  1. #1
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    6

    Default SearchCalendarResourcesRequest change in Zimbra 7?

    I have a zimlet that searches for calendar resources. It uses SearchCalendarResourcesRequest.

    In Zimbra 6 it works but it no longer works in Zimbra 7. The SOAP call comes back but the attributes I requested are not in the _attrs field.

    Code:
    var soapDoc = AjxSoapDoc.create("SearchCalendarResourcesRequest", "urn:zimbraAccount") ;
    var method = soapDoc.getMethod()
    method.setAttribute("attrs", ["displayName", "description", "zimbraCalResContactEmail"]) ;
    method.setAttribute("sortBy", "displayName") ;
    method.setAttribute("sortAscending", "1") ;
    // (filter code omitted as it seems to be working)
    response = command.invoke({soapDoc: soapDoc})
    Here is the response (note that the attributes I requested are not included):
    Code:
    {"Header":{"context":{"session":{"id":"1467","_content":"1467"},
    "change":{"token":40811},"_jsns":"urn:zimbra"}},
    "Body":{"SearchCalendarResourcesResponse":{"paginationSupported":false,"calresource":
    [{"name":"cal_lo_main_building_255@example.com","id":"uid=cal_lo_main_building_255,ou=people,dc=example,dc=com"},
    {"name":"cal_lo_main_building_822@example.com","id":"uid=cal_lo_main_building_822,ou=people,dc=example,dc=com",
    "_attrs":{"zimbraCalResContactEmail":"ferdsmith@example.com"}},
    {"name":"cal_lo_main_building_825@example.com","id":"uid=cal_lo_main_building_825,ou=people,dc=example,dc=com",
    "_attrs":{"zimbraCalResContactEmail":"ferdsmith@example.com"}},
    {"name":"cal_lo_main_building_232@example.com","id":"uid=cal_lo_main_building_232,ou=people,dc=example,dc=com",
    "_attrs":{"zimbraCalResContactEmail":"ferdsmith@example.com"}}],"more":true,"_jsns":"urn:zimbraAccount"}},"_jsns":"urn:zimbraSoap"}
    Note that I can get some of the attributes, e.g., zimbraCalResLocationDisplayName and zimbraCalResContactEmail. But other attributes will not be returned, e.g., description and displayName. Could this be a permissions issue?
    Last edited by hookmac123; 01-28-2012 at 06:34 PM. Reason: Clarified what data was missing

Similar Threads

  1. What to clean on a Zimbra mail server?
    By tezarin in forum Administrators
    Replies: 11
    Last Post: 12-16-2011, 11:43 AM
  2. Zimbra 6 on Ubuntu 8.04 x64 reverting to IPv6
    By nimble7 in forum Installation
    Replies: 1
    Last Post: 11-29-2010, 11:03 PM
  3. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 04:43 AM
  4. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 11:45 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 06:38 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
  •