get_entry_list call does not return the requested related fields.

Hi,

I’m stuck in an get_entry_list call that does not work out. My params are:

$get_entries_parameters = array(
‘session’ => $this->useraccount->getCRMSessionID(),
‘module_name’ => ‘AOS_Invoices’,
‘query’ => ‘’,
‘select_fields’ => array( ‘id’ ),
‘link_name_to_fields_array’ => array(
array(‘name’ => ‘aos_invoices_aos_products_quotes’,
‘value’ => array(‘id’, ‘product_id’ ))),
‘offset’ => $offset,
‘deleted’=> ‘0’
);

        $crm_response = crmCall( "get_entry_list",
                                     $get_entries_parameters );

I get back a NULL response.

If I remove the link_name_to_fields_array setting, or the select_fields setting, I get a listing (all fields, not only the id as requested).

Am I doing something obviously wrong?

  • K

I digged a bit deeper, and I do actually get the following output from the curl_exec:

HTTP/1.0 500 Internal Server Error
Date: Thu, 27 Nov 2014 11:39:07 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.27
Set-Cookie: PHPSESSID=4af87f019360bd220890363f7938171b; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 0
Connection: close
Content-Type: text/html

Is there any way I can get more information out of the server on what’s going wrong?

  • K

Log file from the server attached. It does a sql-SELECT for the Invoices, but it does not close. Normally, there is a End: SugarWebServiceImpl->get_entry_list - SUCCESS, but I cannot see that for the request. It seems the whole request just dies.

Further, I see that services/v4/SugarWebServiceImplv4.php, line 312 states:
if(!empty($link_name_to_fields_array)){
$linkoutput_list[] = self::$helperObject->get_return_value_for_link_fields($value, $module_name, $link_name_to_fields_array);

But when I look for the get_return_value_for_link_fields function, I only find an implementation of it in core/SoapHelperWebService.php. Is it so that the function only exists in the Soap protocol, and not the REST?

  • K