get_last_viewed
Overview
Retrieves a list of recently viewed records by module for the current user.
Available APIs
Definition
get_last_viewed(session, module_names)
Parameters
Name |
Type |
Description |
session |
String |
Session ID returned by a previous login call. |
module_names |
module_names | Array |
The list of modules to retrieve last viewed records for. |
Result
Name |
Type |
Description |
result |
last_viewed_list | Array |
The call result. Contains a list of reciently viewed records. |
result[].id |
Integer |
The result ID. |
result[].item_id |
String |
The reciently viewed record ID. |
result[].item_summary |
String |
The name of the reciently viewed record. |
result[].module_name |
String |
The name of the module. |
result[].monitor_id |
String |
The monitor ID from the tracker table. |
result[].date_modified |
String |
The date the record was viewed. |
Change Log
Examples
PHP
$get_last_viewed_parameters = array(
//Session id
"session" => $session_id,
//The name of the modules to retrieve last viewed for
'module_names' => array(
'Contacts',
'Accounts'
),
);