Hi i am building an external application interacting with the SuiteCRM using REST API. I have created a module "franchise" which would have many leads in it, so created a one to many relationship between franchise and leads. Now i am trying retrieve a lead record and the franchise associated to it. But I get an empty result. Here's my code:
$get_franchise_lead_parameters = array(
'session'=>$sessionID,
'module_name'=>'Leads',
'module_id'=>$_GET['leadid'], //the id of the specific lead record.
'link_field_name'=>'wbur_franchise_leads_1',
'related_fields'=>array(
'id',
'name',
),
'deleted' => '0',
);
$get_franchise_lead = call('get_relationships',$get_franchise_lead_parameters, $url);
I get the following result:
stdClass Object ( [entry_list] => Array ( ) [relationship_list] => Array ( ) )
I have tried using the get_entry_list call also, but i don't get any details in the relationship_list tied to each Lead record.
Could any one please help me...!! I have been trying this from two days.
I got my answer from the SuiteCRM forum. We could get the relationships by using the following parameters: