title: SuiteCRM how to retrieve all account related contacts
body: <p>I have problem retrieveing all account related contacts with REST API v4_1. I am using SuiteCRM.</p>
  
  <p>As I can see by table structure, there is table account and accounts_contacts which contains ID to the Contacts. I use this code to get all Accounts related to the logged user. </p>
  
  <pre><code>$get_entry_parameters = array
          (
              //session id
              'session' =&gt; $this-&gt;session_id,
  
              //The name of the module from which to retrieve records
              'module_name' =&gt; "Accounts",
  
              //The ID of the record to retrieve.
              //'id' =&gt; NULL,
  
              //Where conditions without "where" keyword
              'query' =&gt; "accounts.assigned_user_id='" . $this-&gt;user_id . "'",
  
              //Sort result by
              'order_by' =&gt; NULL,
  
              //offset
              'offset'  =&gt; 0,
  
              //The list of fields to be returned in the results
              'select_fields' =&gt; array( 'id'),
  
              //optional
              'link_name_to_fields_array' =&gt; array(array()),
  
              //Max number of results to list
              'max_results' =&gt; 20,
  
              'deleted' =&gt; false
          );
  
          $response = $this-&gt;call("get_entry_list", $get_entry_parameters);
  </code></pre>
  
  <p>Then I would love for each of those accounts, to retrieve their related contacts, but I don't know how can I do that. </p>