REST API v4_1 を使用して、すべてのアカウント関連の連絡先を取得する際に問題があります。SuiteCRM を使用しています。
テーブル構造からわかるように、連絡先の ID を含むテーブル account と accounts_contacts があります。このコードを使用して、ログインしているユーザーに関連するすべてのアカウントを取得します。
$get_entry_parameters = array
(
//session id
'session' => $this->session_id,
//The name of the module from which to retrieve records
'module_name' => "Accounts",
//The ID of the record to retrieve.
//'id' => NULL,
//Where conditions without "where" keyword
'query' => "accounts.assigned_user_id='" . $this->user_id . "'",
//Sort result by
'order_by' => NULL,
//offset
'offset' => 0,
//The list of fields to be returned in the results
'select_fields' => array( 'id'),
//optional
'link_name_to_fields_array' => array(array()),
//Max number of results to list
'max_results' => 20,
'deleted' => false
);
$response = $this->call("get_entry_list", $get_entry_parameters);
次に、これらのアカウントのそれぞれについて、関連する連絡先を取得したいと思いますが、どうすればそれができるかわかりません。