Sub topic 9
What editions are
This chapter assumes you know what an org is and the difference between production and non-production orgs. It also assumes you have a basic idea of SaaS licensing. If you need a refresher, review the chapters on orgs and org types first.
Editions in one sentence
An edition is a packaged level of Salesforce that sets which features, limits, and options an org gets. Every org has exactly one edition. The edition is a property of the org, not a separate thing you install.
Salesforce sells and bundles its products in tiers. Common editions include Starter, Pro Suite, Professional, Enterprise, Unlimited, and Developer. Names and availability change over time, so check current Salesforce documentation before you plan around a specific edition.
What an edition controls
The edition decides what is switched on in the org. In practice it affects three things:
- Features. Some capabilities exist only in higher editions. For example, Professional Edition does not include the same customization and API options as Enterprise Edition.
- Limits. Editions set caps such as storage per user, how many custom objects you can create, and API call allowances.
- Add-ons. Some features can be bought separately and added to an edition. Other features are included only at higher tiers.
The next chapter covers these differences in detail. Here the point is that the edition is the lever that sets them.
Edition is not the same as org type
Beginners often mix up edition and org type. They answer different questions.
| Concept | Question it answers | Examples |
|---|---|---|
| Org type | What is this org used for? | Production, sandbox, scratch, Developer Edition, trial |
| Edition | Which feature and limit package does it have? | Professional, Enterprise, Unlimited, Developer |
A production org has an edition such as Enterprise. A sandbox copies the edition of the production org it came from. A scratch org takes its edition from its definition file. This is why a sandbox cannot offer features that its production org lacks.
Where the edition is set
You can see how the edition gets decided for each kind of org:
For scratch orgs, you choose the edition yourself. This definition file requests a Developer edition scratch org:
{
"orgName": "Tutorial Scratch Org",
"edition": "Developer"
}Changing the edition value gives a scratch org with a different feature package. Scratch orgs are short-lived, so this is a cheap way to test how your work behaves under a different edition.
Reading the edition from the org
The Organization object stores the edition in its OrganizationType field. This SOQL query returns it, along with whether the org is a sandbox:
SELECT Id, Name, OrganizationType, IsSandbox, InstanceName FROM OrganizationA result such as Enterprise Edition in OrganizationType tells you the feature package. IsSandbox tells you the org type. Reading both fields together keeps the two ideas separate.
Common errors
- Assuming a sandbox has more than production. A sandbox cannot exceed the edition of its source org.
- Treating the edition as a cloud. Sales Cloud and Service Cloud are product groupings. An edition is a tier of features and limits. You can have Sales Cloud in more than one edition.
- Building on a feature the target edition lacks. A solution that works in a Developer Edition org may fail when deployed to a Professional Edition production org.
Exercise
Your team develops in a sandbox that was copied from an Enterprise Edition production org. A developer says the sandbox can safely use a feature that only Unlimited Edition includes. Is that correct, and why?
Show answer
No. A sandbox inherits the edition of its source production org, so it has Enterprise Edition features and limits. A feature available only in Unlimited Edition would not be available in the sandbox or in production. To use it, the production org would need to move to a higher edition or buy the feature as an add-on if one is offered.