+ 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.