Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Filter answer report by product id with CONNECT API. (7 Comments)

$
0
0

Topic by Kazuyoshi Takahashi

Content

Hi

I want to filter answer report by product id with CONNECT API.

I wrote the code as below.

    initConnectAPI();

    $status_filter = new RNCPHP\AnalyticsReportSearchFilter;
    $status_filter->Name = 'map_prod_hierarchy';
    $status_filter->Values = array('19');

    $filters = new RNCPHP\AnalyticsReportSearchFilterArray;
    $filters[] = $status_filter;
    
    $ar = RNCPHP\AnalyticsReport::fetch($this->kk_report_id);
    
    $arr = $ar->run(0, $filters);


I have already set "map_prod_hierarchy" filter on the report.
But I could not get data from AnalyticsReport.

"map_prod_hierarchy" filter's Expression was set as "answers.map_prod_hierarchy".

I also tried a_id to get answers filterd by Answer ID.
"a_id" filter's Expression was set as "answers.a_id".
And I could get data from AnalyticsReport.


Does anybody know how to get data which is filterd by Product ID from AnalyticsReport by CONNECT API ?

Best Regards,

Version

august2012

Viewing all articles
Browse latest Browse all 2504

Trending Articles