lawrence-ytz Posted December 3, 2014 Report Share 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? Quote Link to comment Share on other sites More sharing options...
lawrence-ytz Posted December 3, 2014 Author Report Share 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()); Quote Link to comment Share on other sites More sharing options...
Tyson Posted December 3, 2014 Report Share 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? Quote Link to comment Share on other sites More sharing options...
lawrence-ytz Posted December 4, 2014 Author Report Share Posted December 4, 2014 the client has a value set in the custom field. Absolutely nothing is returned. Quote Link to comment Share on other sites More sharing options...
Tyson Posted December 4, 2014 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.