2

Is there and if so, what is the maximum number of classes, visualforce pages and page layouts that can be created per salesforce organization?

2

I think there is no limit for VisualForce Pages but the Maximum number of class and trigger code units in a deployment of Apex is 5000. You can get all the limits here.

Salesforce recommends creating no more than 200 page layouts. Although there is no limit, it can be difficult to manage your page layouts if you have more than 200.

3
  • I think I accidentally edited your answer instead of posting a new one. I apologize for that. I have reverted that
    – manjit5190
    Dec 28 '16 at 10:13
  • Thanks @Saroj Bera...is there limits for visual force pages too?
    – oookkk
    Dec 28 '16 at 10:31
  • I could not find the limit, but you would probably hit other limits first like 3 MB of apex code limit and 5000 classes.
    – Saroj Bera
    Dec 28 '16 at 12:35
2

There is a limit of 3MB/3 million characters on classes and triggers combined excluding test classes and comments.

This limit can be increased by raising a case with Salesforce Support depending on type of edition you have.

Each class cannot have more than a million characters.

There is no limit on page layouts or VF pages. However large number of layouts and pages will be difficult to manage.

Update:

The code limit is doubled in Summer 18 to 6 million characters.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.