AnsweredAssumed Answered

Pulling Contacts for a specific account

Question asked by bstar bstar on Oct 24, 2014
I am trying to get all contacts associated with this account ID. When I use accounts.id, I get no results. I have tried account.id, account_id, contacts.account_id.... I am at a loss here. Any suggestions?

$get_entry_list_parameters = array(
         'session' => $session_id,
         'module_name' => 'Contacts',
         'query' => "accounts.id = '340003d8-4b1f-2504-fc87-541c97c94e18'",
         'order_by' => "",
         'offset' => '0',

         'select_fields' => array(
              'id',
              'first_name',
              'last_name',
              'contact_type_c',
              'account_id',              
         ),

         'link_name_to_fields_array' => array(
              array(
                   'name' => 'email_addresses',
                   'value' => array(
                        'id',
                        'email_address',
                        //'opt_out',
                        //'primary_address',
                        'contact_id',
                   ),
              ),
         ),
         'max_results' => '50',
         'limit' => '50',
         'deleted' => '0',
         'Favorites' => false,
    );

Outcomes