Oracle Service Cloud RightNow CX PHP Connect API Analytics Report example


$report_id = ..74..;
$report = RNCPHP\AnalyticsReport::fetch($report_id);

$report_filter = new RNCPHP\AnalyticsReportSearchFilter;
$report_filter->Name = 'chats.email';
$report_filter->Values = array($email);
$filters = new RNCPHP\AnalyticsReportSearchFilterArray;
$filters[] = $report_filter;

$report_result = $report->run(0,$filters);

while($reportRow = $report_result->next())
{
print_r($reportRow);
$chatID = (int)$reportRow['chat_id'];
}

Leave a Reply

You must be logged in to post a comment.