Execute Report on CP
Content
Hi Team,
I have a report with product hierarchy as the filter , I want to show this report on customer portal page for a given product. I will get the product id from url. But the report is not executing. As part of R&D I tried to run the report with custom script, when I tried with integer filters the report executed, and with Menu filter (product hierarchy) is not executing. Below is the code snippet I tried
$prod_filter= new RNCPHP\AnalyticsReportSearchFilter;
$prod_filter->Name = 'Product';
$prod_filter->Values = array(101);
$filters = new RNCPHP\AnalyticsReportSearchFilterArray;
$filters[] = $prod_filter;
1