get_entry_list
Overview
Retrieves a list of beans based on query specifications.
Available APIs
Definition
get_entry_list(session, module_name, query, order_by, offset, select_fields, link_name_to_fields_array, max_results, deleted, favorites)
Parameters
Name |
Type |
Description |
session |
String |
Session ID returned by a previous login call. |
module_name |
String |
The name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name. |
query |
String |
The SQL WHERE clause without the word "where". You should remember to specify the table name for the fields to avoid any ambiguous column errors. |
order_by |
String |
The SQL ORDER BY clause without the phrase "order by". |
offset |
Integer |
The record offset from which to start. |
select_fields |
select_fields | Array |
The list of fields to be returned in the results. Specifying an empty array will return all fields. |
link_name_to_fields_array |
link_names_to_fields_array | Array |
A list of link names and the fields to be returned for each link. |
max_results |
Integer |
The maximum number of results to return. |
deleted |
Integer |
If deleted records should be included in the results. |
favorites |
Boolean |
If only records marked as favorites should be returned. |
Result
Name |
Type |
Description |
result |
get_entry_result_version2 | Array |
The call result. |
result.result_count |
Integer |
The total number of records returned in the call. |
result.total_count |
Integer |
The total number of records. |
resultnext_offset |
Integer |
The next offset to retrieve records. |
result.entry_list |
Array |
The record's name-value pair for the simple datatypes excluding the link field data. If you do not have access to the object, entry_list[].name_value_list will notify you. |
result.relationship_list |
Array |
The records link field data. |
Change Log
Version |
Change |
v3_1 |
Added favorites parameter. |
v2 |
Added link_name_to_fields_array parameter. |
v2 |
Return type was changed from get_entry_list_result to get_entry_list_result_version2. |
Examples
PHP
$get_entry_list_parameters = array(
//session id
'session' => $session_id,
//The name of the module from which to retrieve records
'module_name' => 'Leads',
//The SQL WHERE clause without the word "where".
'query' => "",
//The SQL ORDER BY clause without the phrase "order by".
'order_by' => "",
//The record offset from which to start.
'offset' => 0,
//A list of fields to include in the results.
'select_fields' => array(
'id',
'name',
'title',
),
//A list of link names and the fields to be returned for each link name.
'link_name_to_fields_array' => array(
array(
'name' => 'email_addresses',
'value' => array(
'email_address',
'opt_out',
'primary_address'
),
),
),
//The maximum number of results to return.
'max_results' => 2,
//If deleted records should be included in results.
'deleted' => 0,
//If only records marked as favorites should be returned.
'favorites' => false,
);