Sub topic 8
Opening Setup and finding your org details
Setup is the part of Salesforce where you configure the org. You also use it to check which org you are signed in to. This chapter shows how to open Setup, move around it quickly, and find the details that identify your Developer Edition org. These are the org ID, edition, instance, My Domain and storage usage.
This chapter assumes you have already signed up, verified your email, registered multi-factor authentication, and logged in through your My Domain URL. Those steps are covered in earlier chapters. The CLI section assumes you have authorized the CLI under the alias my-dev-org, as shown in the sign-up chapters. It also assumes you are comfortable running terminal commands.
Opening Setup
A new Developer Edition org opens in Lightning Experience, the current Salesforce interface. To open Setup:
- Select the gear icon in the top-right corner of the page.
- Choose Setup.
Setup opens in a new browser tab, so you keep your app tab and your configuration tab side by side. This is the normal behavior, not a pop-up problem.
If the gear menu has no Setup entry, you are probably not signed in as an administrator. In a Developer Edition org you sign up as the System Administrator, so check that you are in the right org and not a different one you can log in to. The username shown under your avatar tells you which user you are.
You can also go straight to Setup by URL. Replace your-domain with your My Domain name. The exact host depends on your org, so copy it from your browser's address bar once Setup is open.
https://your-domain.my.salesforce-setup.com/lightning/setup/SetupOneHome/homeThe path after /lightning/setup/ names the page. Many Setup pages follow this pattern, so a bookmark to a page you use often is a reliable shortcut.
The layout of Setup
Setup Home has two tabs at the top.
- Home shows shortcuts and recommendations, plus links to learning resources.
- Object Manager lists every standard and custom object. You use it to manage fields, page layouts and relationships. You will use it often later in the tutorial.
The left sidebar is a tree of menus such as Administration, Platform Tools, Settings and Environments. Salesforce renames and moves some of these entries between releases, so do not memorize click paths.
Quick Find
Above the tree is the Quick Find box. Type part of a page name and the tree filters to matching entries. For example, typing company shows Company Information under Company Settings. Typing users shows the user management pages.
Quick Find searches Setup menu names. It does not search your data or metadata. If you want to find an object or a field, use the Object Manager tab instead.
A few habits help:
- Type short, distinctive words.
my domfinds My Domain. - If nothing matches, clear the box and try a different term. A feature may be named differently or be unavailable in your edition.
- A page you cannot find may be hidden because a feature is not enabled yet. Dev Hub, for example, appears only after you enable it, which is covered in a later chapter.
Where to find your org details
The page you will use most is Company Information. Use Quick Find to search for Company Information. It is under Settings > Company Settings.
| Detail | Where it appears | Why it matters |
|---|---|---|
| Organization Name | Company Information | The display name of the org. You can edit it. |
| Organization ID | Company Information | An 18-character ID that starts with `00D`. Support cases and some integrations ask for it. |
| Organization Edition | Company Information | Should read **Developer Edition**. |
| Instance | Company Information | The server group your org runs on, such as `NA224`. It also appears in the Salesforce Trust status page. |
| Primary Contact | Company Information | The person Salesforce contacts about the org. |
| Default Locale, Language, Time Zone | Company Information | Defaults for formatting dates, numbers and currency. |
| My Domain | **Settings > Company Settings > My Domain** | Your org's login and URL name. |
| Used Data Space and Used File Space | Company Information, and **Storage Usage** | Shows how much of the org's limits you have consumed. |
Your own user details are separate from the org details. To see your username and profile, open the avatar menu in the top-right corner and choose Settings. Use Setup for org-wide settings, and use your personal settings for your own user.
Two other pages are useful:
- Storage Usage shows data and file storage by object. It tells you what fills the org.
- System Overview shows counts against limits, such as custom objects, Apex classes and API requests. The limits chapter covers what these numbers mean.
A mental map
Confirming your details from the CLI
The Setup pages and the CLI show the same org from two sides. Comparing them is a good check that you have authorized the right org.
The sf org display command prints the details the CLI stored when you ran sf org login web.
sf org display --target-org my-dev-orgThe output includes the org ID, the username, the instance URL and the alias. Compare the org ID with the value on the Company Information page. The two must match.
You can also read the same data with a SOQL query against the Organization object. SOQL is the Salesforce Object Query Language.
sf data query --target-org my-dev-org --query "SELECT Id, Name, OrganizationType, InstanceName, IsSandbox FROM Organization"For a Developer Edition org, the result should show these values:
OrganizationTypeisDeveloper Edition.IsSandboxisfalse.InstanceNamematches the instance on Company Information.Idis the org ID. The API may return the 15-character form of the ID, while Setup shows the 18-character form. The first 15 characters are identical.
The Organization object always returns exactly one row for the org you are connected to.
The same check in Apex
You can read the same facts from Apex code. Run this as anonymous Apex, for example in the Developer Console under Debug > Open Execute Anonymous Window. Then open the debug log to read the output.
System.debug('Org ID: ' + UserInfo.getOrganizationId());
System.debug('Org name: ' + UserInfo.getOrganizationName());
System.debug('User: ' + UserInfo.getUserName());
System.debug('Org URL: ' + URL.getOrgDomainUrl().toExternalForm());UserInfo.getOrganizationId() returns the same value that Company Information shows, and URL.getOrgDomainUrl() returns your My Domain URL. If a script ever behaves strangely, these lines tell you quickly whether you are in the org you think you are.
Common problems
| Symptom | Likely cause | What to do |
|---|---|---|
| No Setup entry in the gear menu | You are not logged in as an administrator, or you are in a different org | Check the username in your profile and log in again through your My Domain URL. |
| Quick Find shows nothing | The feature is not enabled, or you used a different name | Clear the box and search for a shorter term. |
| Setup opens in the same tab or appears blank | A browser extension or pop-up blocker is interfering | Allow pop-ups for your My Domain and reload. |
| Org ID in the CLI differs from Setup | The CLI is authorized to a different org | Run `sf org list`, then log in again with the correct alias. |
| Edition is not Developer Edition | You signed in to a Trailhead Playground or another org type | Log out and log in to the Developer Edition org's My Domain. |
Exercises
Exercise
You run sf data query against your org and the Id is 15 characters long, but the Company Information page shows 18 characters. Is something wrong? How do you check?
Show answer
Nothing is wrong. The 18-character ID is the 15-character ID plus a three-character checksum suffix, so the first 15 characters must be identical. Compare those characters. If they match, you are in the same org.
Exercise
List three details you can read on the Company Information page that prove you are in a Developer Edition org and not a sandbox or Trailhead Playground. Then name one CLI command that gives you a matching check.
Show answer
Organization Edition reads Developer Edition, the Organization ID starts with 00D and matches the CLI value, and the Instance and Organization Name match the org you signed up for. A matching CLI check is sf data query --target-org my-dev-org --query "SELECT Id, Name, OrganizationType, IsSandbox FROM Organization", which should show Developer Edition and IsSandbox as false. sf org display --target-org my-dev-org also shows the org ID.