We have a custom function that runs hourly and processes pdfs that were created and then emails them to various destinations. The pdfs are based on a custom module and there are hundreds of them that go out per day. What we're looking for is a way to generate reports at the end of each day showing all of the pdfs that were processed and sent that day, and I am trying to figure out the best way to do that.
Does CRM have a native way to add data that can then be queried later for reporting purposes, like persistent variables with a global scope beyond the function? Or would I need to add a field to the module of, for instance, "Time_Processed", that I then populate in each record as the pdfs are sent? If I do add such a field could I then generate a report based on that date field in each module, ie. "give me a list of all Custom_Module2 where Time_Processed between x and y"?
Thanks.