lawrence-ytz Posted December 3, 2014 Report Posted December 3, 2014 I need to get the value of a custom field based on either client_id or username from an API call in an external application. I was hoping wither Users::getByUsername or Clients:getSettings would return the custom fields, but they don't. Anyone know how I can accomplish this?
lawrence-ytz Posted December 3, 2014 Author Report Posted December 3, 2014 found it, Clients:getCustomFieldValues, but it returns nothing, no response, no errors $data = array( 'client_id' => $client_id ); $response = $api->get("Clients", "getCustomFieldValues", $data); print_r($response->response()); print_r($response->errors());
Tyson Posted December 3, 2014 Report Posted December 3, 2014 What is the response? null? That method always returns an array. If the array is empty, then I suspect the client does not have any values set for any of the available custom fields. Perhaps the custom fields were created after the client already existed?
lawrence-ytz Posted December 4, 2014 Author Report Posted December 4, 2014 the client has a value set in the custom field. Absolutely nothing is returned.
Tyson Posted December 4, 2014 Report Posted December 4, 2014 One of the following would likely be true: The client doesn't have any custom field values The API call or credentials are invalid The API call causes a fatal error or exception in the application The API call never gets executed
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now