Hi there,
I am trying to retrieve all the emails associated with a specific lead using rest api.
i use the following code:
$get_lead_email_parameters = array(
āsessionā=>$sessionID,
āmodule_nameā=>āLeadsā,
āmodule_idā=>$lead_id,
ālink_field_nameā=>āemailsā,
ārelated_module_link_name_to_fields_arrayā => array(),
ārelated_fieldsā => array(
ānameā,
āfrom_addr_nameā,
āreply_to_addrā,
ādescriptionā,
),
ādeletedā => ā0ā,
);
$get_lead_email = call(āget_relationshipsā, $get_lead_email_parameters, $url);
This code works with an opportunity but not with the lead. Why is that so?
Can anyone tell me how do i display all the emails attached with a lead id?