I'm working with the CiviCRM API and it's been great--I've been able to make a very useful tool for our team. However, I've encountered a problem.
I would like to do a search on contacts based on a tag. However, whenever I make a call to the database asking for a particular tag, I get an error. The following is an example I used on the demo site:
CRM.api3('Contact', 'get', {
"sequential": 1,
"tag": "Company"
}).done(function(result) {
// do something
});
I receive the following error in the response:
{
"error_code": "no such field",
"tip": "add debug=1 to your API call to have more info about the error",
"is_error": 1,
"error_message": "DB Error: no such field"
}
Now, I receive a different error in test use on my own site, but is it possible in some way to do a search in the API for a contact based on tag?