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?