Hi all,

I'm currently stuck with a problem that should probably be easy to solve but I couldn't find a working solution yet. I hope someone can help me out.

What I'm trying to do is query all appointments as ZmAppt objects (basically the same thing "GetContacts" does for ZmContacts). However, the code I wrote for that only returns incomplete information (i.e. it seems to miss the startDate and endDate, the rest is alright). Here's what I did:

var cb = new AjxCallback(this, this._processSearchResponse);
var types = new AjxVector(); types.add("APPT");
appCtxt.getSearchController().search({query: "in:calendar", userText: true, types:types, limit:500, noRender:true, callback:cb});
In _processSearchReponse I'm basically processing the data I'm getting back using response.getResponse().

Now as already mentioned before, while this actually returns all appointments as objects, it doesn't seem to give me all the data I need. Is there any other way to do it? Or am I doing anything wrong?

Alternatively, is there any way to get a ZmAppt object by its id? (Because the code above returns the ids of all appointments).

Any suggestions/help would be greatly appreciated.