Skip to main content

Layouts, layouts, layouts

We've all customized our Salesforce orgs, adding custom fields and placing them on the page layouts, grouping related fields and trying to make the most important fields the most obvious on the page. But it's easy to focus on the body of the page (the 'details' tab in Lightning Experience) and overlook some other layouts that can help you and your users see what matters most. Here, I'll discuss Search Layouts, Compact Layouts, and Related List customizations on the Page Layout.

The screenshots here are from a Trailhead org with minimal customizations and not a lot of data. Hopefully you can still appreciate the potential benefits from making these layout customizations in your org.

Search Layouts

When you perform a search, the result is a list of matching records, whether those are all of a single object type, or a selection of the best matches from different objects. But what fields are shown in the search results? That's governed by each object's Search Layout.

Default account search results
In this screenshot you see the default fields: Account Name, Site, Phone and Owner. I definitely want more information on my accounts to help me select the right one. The specifics will vary by org, but for B2B orgs, I'd usually include Account Name, website, Billing City and State (maybe country), Industry, Annual Revenue, Owner, Last Activity Date and, perhaps, Territory.

Making this change is simple. From Setup | Object Manager, select the Account Object, then Search Layouts. Choose 'Edit' beside the Search Results entry. Make your changes and click Save.

Compact Layouts

The first six fields included in your compact layout appear in the Highlights section of a record page in Lightning Experience; the first four fields show in the Mobile app. When real estate is that limited, you want to make the best possible use of it!

Default Account Contact LayoutThis screenshot shows the default Account Compact Layout in my Trailhead org. In addition to the Account Name, I have the Type, Phone, Website, Owner, Site and Industry. To customize this, go to Setup | Object Manager, select the Account Object, then Compact Layouts. Click on an existing layout ('System Default' if you haven't customized a compact layout yet for this object), then click Clone. Give your new layout a name, choose the fields you want (keep the Name first!), and save. My own preferences (again, in a B2B environment) start with Name, Type, Phone, Address, Website and Industry. Don't skip the last step: click on Compact Layout Assignment | Edit Assignment, and assign your different layouts appropriately.

Related Lists

The Page Layout editor allows you to group items on your record detail pages, chose which buttons/fields/actions to include (or not), etc. It also allows you to control which Related Lists appear on the page and, for each related list, which fields to show and how to sort multiple items. Below, for instance, is what my Opportunity Related List looks like on the Account page before any customizations. My preference would be to add the Opportunity Type, Forecast Category, Last Activity Date and Last Modified Date.

Opportunities Related List on the Account page

The fields you select will appear when hovering on the Related List Quick Links (in both Classic and Lightning), in the Related List section in Classic, in the Related List - Single component in Lightning and, with Summer '19, in the Enhanced Related List component.

To customize the related list, go to Setup | Object Manager and select the parent object (the object to which the related list items are, uh, related), in this case Account. Click on Page Layouts, then edit the layout(s). Click on Related Lists in the page layout editor, then click the wrench icon for the object whose view you want to change (Opportunities in this instance). Change your field selections and, optionally, adjust the sort order. You can also choose to have your changes applied to the other page layouts for the same object.

Note that you would have to customize each related item on the page layout(s) for each parent object. For instance, the customizations here were made to the Opportunities Related List on the Account Page; the customizations do NOT automatically apply to the Opportunities Related List on the Contact Page.


Salesforce Help & Training references: Customize Search LayoutsCreate Custom LayoutsCustomize Related Lists

Comments

Popular posts from this blog

Salesforce Pipeline Reporting - part 1 of 3

In a dozen (plus) years working with Salesforce, I've never been entirely happy with the built in reporting of my opportunity pipeline. I can export details, or a printed (formatted) view, but I lose the interactivity. I can use a dashboard, which is better now in Lightning in that I can see a lot more fields in a table component. But flexible views require filtered dashboards, and just maintaining the filter values (if they go down to a rep level) can be onerous. Plus applying (or removing) a filter tests my (very limited) patience. So I've typically exported the report details into Excel, and there created a workbook that includes (1) summary info, (2) scrollable deal lists with hyperlinks back to the opportunity records in Salesforce and (3) filters that let me instantly switch views, say among teams, reps, opportunity types, or fiscal periods. My process around this involved LOTS of VBA and LOTS of formulas. Lately, I've (finally) gotten turned on to slicers in Exc

Salesforce reporting: XL-Connector and VBA

In an earlier post , I mentioned a tool I'm using to import Salesforce data - via SOQL or existing reports - into Excel. This post is more about using that tool, XL-Connector from Xappex . Here, I'll walk through the (simple) process of importing and refreshing a report, and I'll provide a simple VBA macro to automate the refresh. In a future post, I'll expand on that macro to show a friendly view of my opportunity pipeline and a single-page view of how each of my sales reps are doing against a series of KPIs. Importing a report is simple enough. From the XL-Connector tab, select Log In and enter your credentials. I'm using the old id and password (as opposed to SSO), so I provide that along with my 'token'.  (Don't remember your token? Log in to Salesforce via your browser, click on your photo, select Settings, then 'reset my security token'.) Once you're logged in the lock turns green. Back in Excel, on the XL-Connector tab, select

Using Excel with Salesforce: One tool, two tips

Obviously, Salesforce has strong built-in reporting tools. And I'm a big fan of the dashboards, especially filtered dashboards and dynamic dashboards. WAY better than the old approach of creating a unique set of reports and a corresponding dashboard for every conceivable view. Still, I often want to pull my Salesforce data into Excel. This might be for further manipulation / processing, aggregating data that doesn't live in Salesforce, or distribution to non-Salesforce users (hey, those licenses are expensive!). Reporting Tool - XL-Connector: I'm using a new (to me) tool when I have to repeatedly pull Salesforce data into Excel: XL-Connector  (fka Enabler 4 Excel) from Xappex. There's a lot you can do with XL-Connector. My primary use is just to extract data from Salesforce, and this can be done in two ways: reports or SOQL queries. The great part is that once you've captured data into an Excel file, refreshing the data is trivial. I've stored my credential