How do I perform Contact GET for the contact with the exact display name which will return only contacts with that exact display name?
Say I create two users xyz and xyzA
$result = civicrm_api3('Contact', 'create', array(
'sequential' => 1,
'contact_type' => "Individual",
'display_name' => "xyz",
));
$result = civicrm_api3('Contact', 'create', array(
'sequential' => 1,
'contact_type' => "Individual",
'display_name' => "xyzA",
));
The flowing get request always returns both contacts (xyz and xyzA)
$result = civicrm_api3('Contact', 'get', array(
'sequential' => 1,
'display_name' => "xyz",
));
I want my API call to return only users with a display name xyz. How would I do this?
There is an option to turn off Automatic Wildcard, but that would affect the entire website and all the users. Is there a way around this?