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(
‘module_id’=>$_GET[‘leadid’], //the id of the specific lead record.
‘deleted’ => ‘0’,
$get_franchise_lead = call(‘get_relationships’,$get_franchise_lead_parameters, $url);
I get the following set which is empty.
stdClass Object ( [entry_list] => Array ( ) [relationship_list] => Array ( ) )
But this not coorect, when i login to the suite crm, i can see the franchise name linked to each lead created.
I also tried using the get_entry_list method to retrieve all the Leads and tried to retrieve the field wbur_franchise_leads_1_name and assigned_user_name. I could get assigned_user_name but not the franchise name. Why is this so? When assigned_user_name is also relationship field why dont I get wbur_franchise_leads_1_name?
Could any one please help me…!!!