-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Hello,
Thank you for contribution it's really useful. I integrated your class with CodeIgniter, display data with "GET" function works well, but impossible to display the data from the "GET Related".
I'm trying to get the Email address from the contact with this code
$contacts = $this->sugar_rest->get_with_related('Contacts',
array(
"Contacts" => array(
'contacts.id',
'first_name',
'last_name',
'lead_source',
'reports_to_id',
'date_entered',
'date_modified',
'primary_address_country',
),
"EmailAddresses" => array(
'email_addresses.id',
'email_address',
)
),
array(
'limit' => '50',
'order_by' => 'contacts.date_entered desc',
)
);
then in a array (foreach) I try to display
$item["first_name"]... but didn't show up the variable not exist.
I tried as well
$item[0]["first_name"]
and not work as well.
I you can document how to get values from "Get_Related" will be helpful.
ps: Can you please confirm the only way to upload or attach documents is with "Note"? We can not interact with "Documents" moodule?
Thx
Jack