Question

In my Zimbra's queries for REST API, I want to get elements that match only with the name of contact :

http://zimbra.server.com/home/plinard/contacts?fmt=xml&query=(taichimaro)

But Zimbra returns every contact even if he find taichimaro as the function or phoneNumber, so how to tell him that I want to search on the lastName and not on all the fields ?

Thnx

Was it helpful?

Solution

This is how to do it for a field :

Example : LastName

http://zimbra.server.com/home/plinard/contacts?fmt=xml&query=(FIELD[lastname]:taichimaro)

Example : Company

http://zimbra.server.com/home/plinard/contacts?fmt=xml&query=(FIELD[company]:stackoverflow)

Here is a link that shows all the attributes : Hope it can help everybody :)

Zimbra Web Client Search Tips

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top