+ Start a Discussion
Wayne Cordrey 29Wayne Cordrey 29 

Apex Limit class- can we report on limits?

I would like to be notified when we hit certain level on limits-  well before hitting actual salesforce limits.  So for SOQL queries, I'd like to know when we hit 25% of limit.  Ideally, I'd like a log file with a log line showing when SOQL limits hit 25%, APEX Heap limit at 25%, APEX CPU at 50%, etc.   

Is this possible using the Limits class?  Is there an example of this?  


AbhinavAbhinav (Salesforce Developers) 
Check this: