Activity Forums Salesforce® Discussions Programatically check Governor limits through apex?

  • Programatically check Governor limits through apex?

    Posted by Ravi on April 30, 2016 at 4:08 pm

    Is it possible to programatically check whether i have reached governor limit or not? I'd prefer not performing an action if I'm over the limit rather than catching the exception and continuing to try in subsequent calls as it's a bit inefficient.

    Naman replied 8 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Naman

    Member
    April 30, 2016 at 4:10 pm

    You can use LIMIT class to check the governor limits.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos