Sub topic 8
Opening and understanding a record
This chapter assumes you know what an object, a record, and a field are in Salesforce. It also assumes you can use an org where you can view standard objects such as Accounts and Contacts. You will learn the ways to open a record, what a record page shows, and the mistakes people often make when they first read one.
What a record is on screen
A record is one row of an object. An Account called "Acme" is one record of the Account object. In Lightning Experience, each record has its own record page. The page shows the record's field values and the information connected to it.
Every record has an Id. This is a unique key of 15 or 18 characters. Account Ids start with 001. The Id appears in the address bar when you open the record.
Ways to open a record
You can reach the same record page from several places:
- Click a record name in a list view.
- Click a result in global search.
- Click a name in the Recent Items list or the Favorites menu.
- Click a lookup link on another record. For example, the Account name on a Contact opens that Account.
- Paste a record URL into the address bar.
All of these end at the same page. The path you took only changes what "back" does and which items show up in your recent list.
/lightning/r/Account/001XXXXXXXXXXXXXXX/viewThe r means record. The next two parts are the object API name and the record Id. The last part, view, is the action. Replace the 001XXXXXXXXXXXXXXX placeholder with a real Id from your org.
The layout of a record page
The page has these parts:
- Highlights panel. It sits at the top. It shows the record name, a few key fields, and action buttons such as Edit.
- Details. This tab lists the fields in the sections set by the page layout. You can edit a field by clicking the pencil icon next to it.
- Related. This tab holds related lists, which are records linked to this one. An Account shows its Contacts and Opportunities here.
- Activity. This timeline shows tasks, events, and logged calls. It also lets you create them.
Your admin decides which regions appear and where they go. Two orgs can show different record pages for the same object.
Working with related lists
A related list shows child or linked records. Click a title to see the full list. Click a record in the list to open it. Use the dropdown arrow on a row for row actions, such as Edit or Delete.
The related list is a view of other records, not part of this one. Editing a Contact in the Account's related list changes the Contact record.
Common errors
| Symptom | Likely cause |
|---|---|
| A field you expect is missing | The field is not on your page layout, or field-level security hides it from your profile |
| A related list is missing | The admin left it off the layout, or you lack access to that object |
| The Edit button is missing | You do not have edit permission on the record |
| "URL No Longer Exists" error | The record was deleted, or the Id is wrong |
Check what you see against the data
The values on a record page match what a query returns. This SOQL query returns the same Account fields you see in the Details tab for those fields:
SELECT Id, Name, Industry
FROM Account
WHERE Industry = 'Technology'
ORDER BY NameEach row in the result is one record. Opening a row's record page shows the same values, plus the related and activity information that the query does not return.
Exercise
You open an Account and cannot see the Industry field on the Details tab, but a colleague can. Name two possible causes.
Show answer
Your profile may lack field-level security access to Industry, or your page layout may not include the field. A different page assignment for your profile can also explain it. The data is not necessarily missing.
Exercise
In the URL /lightning/r/Contact/003XXXXXXXXXXXXXXX/view, what do r, Contact, and view mean?
Show answer
r means a record page. Contact is the object API name. view is the action. 003XXXXXXXXXXXXXXX is the record Id, and Contact Ids start with 003.