Timeline for Optimize Extraction of Reports Metadata Code to decrease CPU Time
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 16, 2022 at 21:11 | vote | accept | apexdev | ||
Feb 16, 2022 at 18:16 | comment | added | Caspar Harmer | Comments on the gist. gist.github.com/apexdev123/… | |
Feb 16, 2022 at 17:38 | comment | added | apexdev | Here it is: gist.github.com/apexdev123/60d4995a61ee28701a3bdf0bf88f819b | |
Feb 16, 2022 at 17:25 | comment | added | Caspar Harmer | Put all your code into a github gist and share it here. I'll have a look. | |
Feb 16, 2022 at 14:46 | comment | added | apexdev |
OK so I've created the ReportSummarizer class using the big loop I have and put it in the getMetadata (Report[] reportsInfo) method. I'm getting an error on the ReportQueue class on this line String reportMetadata = new ReportSummarizer.getMetadata(reportsRemaining); saying its invalid type even though I have changed it to Report [] type.
|
|
Feb 15, 2022 at 18:41 | comment | added | apexdev |
Thanks. I'm also getting Variable does not exist: ReportSummarizer . By the way, I just started using apex and salesforce very recently so I don't know my around that well.
|
|
Feb 15, 2022 at 18:27 | comment | added | apexdev |
After the comma, only the type is mentioned, but the variable is missing, which was my guess before but then I saw that earlier in your code that you declared it as private String serializedReportMetadata = ''; . That's why I am confused about it.
|
|
Feb 15, 2022 at 16:43 | comment | added | apexdev |
I'm getting 3 errors on this line: public ReportQueue (Report[] reports, serializedReportMetadata) saying that serializedReportMetadata is an invalid type, Unexpected token ')'. and Invalid character in identifier: )
|
|
Feb 14, 2022 at 21:34 | history | edited | Caspar Harmer | CC BY-SA 4.0 |
added 1000 characters in body
|
Feb 10, 2022 at 21:53 | history | answered | Caspar Harmer | CC BY-SA 4.0 |