How to get a list of contact folders

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Posts: 7
Joined: Sat Sep 13, 2014 3:57 am

How to get a list of contact folders

Postby jmckay123 » Tue Dec 23, 2014 4:17 pm

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?

User avatar
Gren Elliot
Zimbra Employee
Zimbra Employee
Posts: 183
Joined: Tue Jun 10, 2014 4:45 am

How to get a list of contact folders

Postby Gren Elliot » Sun Dec 28, 2014 11:35 am

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...

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 2 guests