Page 1 of 1

How to get a list of contact folders

Posted: Tue Dec 23, 2014 4:17 pm
by jmckay123

I am retrieving contacts using a URL like this:

I can retrieve a non-default contact folder by specifying something other than "contacts".  However what I am really missing is a way to discover what contact (and calendar/task)

folders already exist - I do not know them in advance.  Is there a URL that will give me some kind of list, in any format, of what is available?

How to get a list of contact folders

Posted: Sun Dec 28, 2014 11:35 am
by Gren Elliot
You could use the SOAP API's GetFolderRequest to get a list of Contacts folders (or all folders, or all calendar folders...)

See which has a link to:

Look for "GetFolder" under "All Commands".

e.g. using the zmsoap command to get all Contacts folders:

# zmsoap -v -z -t mail -m user1@pan.local GetFolderRequest @view=Contact

view can be Contact/Appointment/Task/Message...