function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jnegijnegi 

Apex Script limit

Hi All

 

Maximum amount of code used by all Apex scripts in an organization is 2 MB. Is it possible to extend this limit?

Best Answer chosen by Admin (Salesforce Developers) 
hisrinuhisrinu

Yes it is... you can raise a case with salesforce to increase the limit.

 

If I was supposed to request this then I will review the code as below.

 

1. Whether all the test classes/test methods are maked with @istest and make sure they are in a separate class

2. If I am not using the functionality then I am going to delete these classes/triggers by taking a backup

3. Make sure that I used some utility methods, so that I can re-use the code.

 

Hope this helps

All Answers

hisrinuhisrinu

Yes it is... you can raise a case with salesforce to increase the limit.

 

If I was supposed to request this then I will review the code as below.

 

1. Whether all the test classes/test methods are maked with @istest and make sure they are in a separate class

2. If I am not using the functionality then I am going to delete these classes/triggers by taking a backup

3. Make sure that I used some utility methods, so that I can re-use the code.

 

Hope this helps

This was selected as the best answer
jnegijnegi

Thanks  hisrinu.