Salesforce developers often face the issue with governor limits provided by salesforce.
Below are the commonly used limits class methods in order to check the limits
Below are the commonly used limits class methods in order to check the limits
System.debug('Limits.getAggregateQueries==>'+Limits.getAggregateQueries()); System.debug('Limits.getLimitAggregateQueries==>'+Limits.getLimitAggregateQueries()); System.debug('Limits.getCallouts==>'+Limits.getCallouts()); System.debug('Limits.getLimitCallouts==>'+Limits.getLimitCallouts()); System.debug('Limits.getCpuTime==>'+Limits.getCpuTime()); System.debug('Limits.getLimitCpuTime==>'+Limits.getLimitCpuTime()); System.debug('Limits.getDMLRows==>'+Limits.getDMLRows()); System.debug('Limits.getLimitDMLRows==>'+Limits.getLimitDMLRows()); System.debug('Limits.getDMLStatements==>'+Limits.getDMLStatements()); System.debug('Limits.getLimitDMLStatements==>'+Limits.getLimitDMLStatements()); System.debug('Limits.getEmailInvocations==>'+Limits.getEmailInvocations()); System.debug('Limits.getLimitEmailInvocations==>'+Limits.getLimitEmailInvocations()); System.debug('Limits.getFutureCalls==>'+Limits.getFutureCalls()); System.debug('Limits.getLimitFutureCalls==>'+Limits.getLimitFutureCalls()); System.debug('Limits.getHeapSize==>'+Limits.getHeapSize()); System.debug('Limits.getLimitHeapSize==>'+Limits.getLimitHeapSize()); System.debug('Limits.getMobilePushApexCalls==>'+Limits.getMobilePushApexCalls()); System.debug('Limits.getLimitMobilePushApexCalls==>'+Limits.getLimitMobilePushApexCalls()); System.debug('Limits.getQueries==>'+Limits.getQueries()); System.debug('Limits.getLimitQueries==>'+Limits.getLimitQueries()); System.debug('Limits.getQueryLocatorRows==>'+Limits.getQueryLocatorRows()); System.debug('Limits.getLimitQueryLocatorRows==>'+Limits.getLimitQueryLocatorRows()); System.debug('Limits.getQueryRows==>'+Limits.getQueryRows()); System.debug('Limits.getLimitQueryRows==>'+Limits.getLimitQueryRows()); System.debug('Limits.getQueueableJobs==>'+Limits.getQueueableJobs()); System.debug('Limits.getLimitQueueableJobs==>'+Limits.getLimitQueueableJobs()); System.debug('Limits.getSoslQueries==>'+Limits.getSoslQueries()); System.debug('Limits.getLimitSoslQueries==>'+Limits.getLimitSoslQueries());
No comments :
Post a Comment