I have a custom module called Assignments with some related Documents. I want to see which relationships a specific Assignment has. To that end, I’ve been playing with get_relationships(). The problem is, I’m getting nothing back. I don’t mean I’m getting an empty Object, I’m getting nothing back. Nada. Zilch. Zip.
For the link field, I’ve used the link name, the columns names from the one-to-many table, etc.
Here is my most recent call and the response I get from it (note the
return xsi:nil="true" xsi:type="tns:get_entry_result_version2"/
entry in the SOAP response.
$result = $this->soapclient->get_relationships(
$this->sess,
'ass_Assignments',
$record_id,
'ass_assignments_documents_1',
'',
array('id', 'document_name'),
array(),
false,
$orderby,
0,
$maxnum
);
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.sugarcrm.com/sugarcrm"><SOAP-ENV:Body><ns1:get_relationshipsResponse xmlns:ns1="http://www.sugarcrm.com/sugarcrm"><return xsi:nil="true" xsi:type="tns:get_entry_result_version2"/></ns1:get_relationshipsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>