AnsweredAssumed Answered

Report section not working after extending sugar endpoint ReportsExportApi

Question asked by Abasaheb Gaware on Jun 2, 2020

Report section not working after extending sugar endpoint ReportsExportApi. Mike Russell

Getting error => Export Type Does Not Exists

 

My code is,

 

require_once('modules/Reports/Exporters/ReportExporter.php');
require_once('modules/Reports/templates/templates_export.php');
use Sugarcrm\Sugarcrm\modules\Reports\Exporters\ReportExporter;

class CustomReportsExportApi extends ReportsExportApi {
    // how long the cache is ok, in minutes
    private $cacheLength = 10;

    public function registerApiRest() {
         return parent::registerApiRest(); 
    }

   protected function exportJson(ServiceBase $api, SugarBean $report)
    {
      //currently no code here
   }

} //class close

Outcomes