AnsweredAssumed Answered

get_relationships returns empty response

Question asked by Koncero Soft on Sep 23, 2015
Hi Team,

I am working with SugarCRM 7.6 professional edition where I am trying to use the legacy soap webservices to get the details of a custom object (Policies) which is related to Leads.

The login works perfect, but when I try the get_relationships, the response is an xml with no values in the nodes.

this is the request I am working with

URL: https://{xyz}

Content-Type: text/xml; charset=utf-8 SOAPAction: https://{xyz}


<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi=""; xmlns:xsd=""; xmlns:soapenc=""; xmlns:tns=""; xmlns:types=""; xmlns:rpc=""; xmlns:soap12="">;
  <soap12:Body soap12:encodingStyle="">;
      <module_name >Leads</module_name>
      <related_fields xsi:type="soapenc:Array">
        <Item  xsi:type="xsd:string">id</Item>
        <Item  xsi:type="xsd:string">document_name</Item>
      <limit xsi:type="xsd:int">1</limit>
      <deleted xsi:type="xsd:int">0</deleted>

Can you please explain, How can I get this working?