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

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 02-18-2011, 02:54 AM
Trained Alumni
 
Posts: 15
Default REST api filter

Hi gurus,
i'm looking for a way to get account details from a shared contact folder to make it available to a third party application.
In the REST API documentation i found:
https://zimbraserver:7071/home/usern...&query=MYQUERY

that returns any contacts that has MYQUERY in any field.
So, if MYQUERY is "First Name" in one contact and "Address" in a second contact, i get 2 results.

I need to know if there is a way to insert "First Name" in the query to get only contacts that have MYQUERY in "Firts Name" field.

Any idea?

bye
Reply With Quote
  #2 (permalink)  
Old 02-20-2011, 12:41 AM
Project Contributor
 
Posts: 92
Default

Hi bizza,

For SOAP API, you can use search query like this;
Quote:
#firstname:[someone's firstname]
And it search only for firstname of contacts.

You better give it a try to use this also for REST API.
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.