TPM_RTRReportingWrapper_AMS is a base Apex class
that receives the payload that's constructed by filter selection in the report. The payload
contains the KPIs that are defined in the report, the customer, dates, and other important
attributes. It then deserializes the payload into an object that can be used in all other
related classes.
Sample Code
global with sharing class TPM_RTRReportingWrapper_AMS { global class Periodmonth { global Integer year; global Integer start; global Integer total; } global class InputPayload { global List<String> accountsfids; global List<String> productsfids; global Periodmonth periodmonth; global String timelevel; global List<String> readproductsfids; global List<String> kpis; global String responsetype; global Boolean error; } global class OutputRecord { global String pdim; global String kdim; global String tdim; global Double v; global OutputRecord(String pdim, String kdim, String tdim, Double v) { this.pdim = pdim; this.kdim = kdim; this.tdim = tdim; this.v = v; } } }