Skip to content

How to display data from Get_Related functions #32

Description

@dreamond

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions