Sub topic 1
What a Salesforce Org Is
Prerequisites
This chapter assumes you have the following:
- A basic idea of what Salesforce is: a cloud CRM (customer relationship management) and application platform.
- A modern web browser.
- A working email address you can access, which you will need in later chapters.
- Comfort running commands in a terminal. This is only needed for the CLI sections later in the tutorial. This chapter has no commands to run.
What you are signing up for
When you "get a Salesforce account," you are really getting an org. An org (short for organization) is one customer's private instance of Salesforce. It holds that customer's data, configuration, and custom code. Nothing is shared with other orgs unless someone sets up an integration.
Salesforce runs many orgs on shared infrastructure. This is called multitenancy: many tenants use the same servers and the same underlying platform. Each tenant sees only its own data and settings.
Each org has a unique 15- or 18-character ID. The 18-character form is safe to compare without regard to case. The org also has a name, an edition, and a set of users.
What lives inside an org
An org has three broad kinds of content:
- Data. Records such as accounts, contacts, and opportunities, stored in objects. An object is similar to a database table, and a record is similar to a row.
- Metadata. The configuration that describes how the org behaves. Examples are custom fields, page layouts, and security settings.
- Code. Apex classes and triggers, which are server-side code written in Salesforce's Java-like language, plus Lightning components for the user interface.
The split between data and metadata matters later. Tools such as the Salesforce CLI mostly move metadata and code between orgs. Data is handled separately.
How an org is reached
Every org has a My Domain URL, a web address unique to that org. It looks like https://yourcompany.my.salesforce.com. You log in there, and tools use it to find the org. Later chapters cover it in detail.
Each user in an org has a username. It is written like an email address, but it does not have to be a real mailbox. It must be unique across all of Salesforce, not just inside one org. This is a common cause of sign-up errors, and the troubleshooting chapter covers it.
One org is not the whole picture
Teams usually work with several orgs, each with a purpose. The diagram shows a typical arrangement.
The solid arrow shows that a sandbox is created as a copy of a production org. The dotted arrows show a looser relationship. A scratch org is created from a Dev Hub org, which can be your production org or a Developer Edition org. The next chapter compares these org types in detail.
A Developer Edition org is the one you will create in this tutorial. It is free, it stands alone, and it is not tied to any company's production data. That makes it a safe place to learn, break things, and rebuild them.
Common misunderstandings
- "An org is a user account." An org contains many user accounts. Your Developer Edition org starts with one user, you, who is also the administrator.
- "My username is my email address." They can be the same, but they are separate fields. The username only has to look like an email address and be globally unique.
- "Orgs share data." They do not. A record you create in one org does not appear in another.
Exercise
You create a custom field and some test records in your Developer Edition org. A colleague logs in to their own Developer Edition org. Will they see your field or records, and why? Which of the two, the field or the records, counts as metadata?
Show answer
No. Each org is a private instance, so another org does not see your configuration or data unless you deploy or integrate them. The custom field is metadata, because it describes how the org behaves. The test records are data.