Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

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 01-28-2012, 09:16 AM
Member
 
Posts: 12
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
Reply With Quote
  #2 (permalink)  
Old 05-19-2012, 11:50 AM
Intermediate Member
 
Posts: 22
Thumbs down sortBy is not working

Also, the sortBy option is not working, all items in the response keep the same order no matter what attribute you put in sortBy.....
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.