Loading

Add a Custom Link or Filtered Report to an Account Record Page in Lightning App Builder

Data pubblicazione: Aug 18, 2026
Descrizione

Classic Custom Links are not surfaced as standalone components in Lightning App Builder, so when a record page uses field sections instead of the full Record Detail component, there's no direct way to place a custom link on it. This article explains three supported workarounds to give users filtered report access from an Account record page.

Risoluzione

This article answers the question: how do you give users a link to a filtered report directly from an Account record page, when Classic Custom Links aren't available as a standalone Lightning App Builder component? There are three supported workarounds: the Report Chart component, a Custom button with a merge field URL, or a Formula field using HYPERLINK(). Use the steps below to implement whichever option fits your use case.

Option 1: Report Chart Component

The Report Chart component is a native Lightning component that can be added directly in Lightning App Builder. It automatically filters chart data by the current record's Account ID. Users can click View Report inside the chart to open the full filtered report.

Step 1: Ensure Your Report Has a Chart

Open the report you want to display. If it doesn't already have a chart, click Edit, then add one using the Add Chart button, and save the report.

Report Builder edit view showing the Add Chart button used to enable a chart on a Summary report 

Step 2: Open Lightning App Builder

Navigate to Setup > User Interface > Lightning App Builder. Open the Account record page you want to modify, or create a new one.

Setup menu path to Lightning App Builder under User Interface 

Step 3: Add the Report Chart Component

In the left-hand component panel, search for Report Chart. Drag it onto your page canvas, select the relevant report, and choose Filter in the Filter By section of the configuration panel.

Report Chart component added to an Account record page with Filter By set to Filter 

Step 4: Save and Activate

Click Save, then Activate the page. Users viewing an Account record will now see the Report Chart, pre-filtered to that Account, and can click View Report to open the full report.

Note: the report must be a type that supports charts, such as Summary or Matrix. The chart auto-filters by Account ID when viewed from an Account record page.

Option 2: Custom Button with Merge Field URL

A Custom button added to the Account page layout provides a clickable link that works in both View and Edit mode. This is the most flexible option and doesn't require a chart-enabled report.

Step 1: Ensure Your Report Has the Required Filter

See the example report below, filtered using Account ID.

Example report filtered by Account ID 

Step 2: Create the Custom Button

Navigate to Setup > Object Manager > Account > Buttons, Links, and Actions. Click New Button or Link and configure as follows:

  • Label: for example, View Active Contacts
  • Display Type: Detail Page Button
  • Behavior: Display in existing window without sidebar
  • Content Source: URL
  • In the URL field, enter the report URL and append the Account ID merge field so the report filters based on the current Account record. The `fv0` parameter tells the report which filter value to apply — in this case, the current Account's ID — so the report opens already filtered to that Account. Example: `/lightning/r/Report/<YOUR_Report_ID>/view?fv0={!Account.Id}`
  • Replace <YOUR_Report_ID> with the 15- or 18-character Salesforce Report ID, then click Save.

New Button or Link configuration screen with URL content source and merge field example 

Step 3: Add the Button to the Page Layout

Go to Setup > Object Manager > Account > Page Layouts. Open the relevant layout, scroll to the Custom Buttons section, drag your new button into it, and click Save.

 

Step 4: Verify on the Record Page

The button now appears in the Highlights Panel button bar on Account record pages. Users can click it to open the filtered report. See the screenshot below with the View Active Contacts button.

Custom button dragged into the Custom Buttons section of an Account page layout 

Option 3: Formula (Text) Field with HYPERLINK()

A Formula field using the HYPERLINK() function renders a clickable link inside a field section. This is the simplest option to set up, but the link is only visible in View mode — not in Edit mode.

Step 1: Ensure Your Report Has the Required Filter

See the example report below, filtered using Account ID.

Example report filtered by Account ID for use with a formula field 

Step 2: Create the Formula Field

Go to Setup > Object Manager > Account > Fields & Relationships > New. Select Formula as the data type, then Text as the formula return type. Enter a field label, for example Active Contacts Report.

Step 3: Enter the Formula

In the Formula editor, enter: `HYPERLINK("/lightning/r/Report/<YOUR_Report_ID>/view?fv0=" & Id, "View Active Contacts")`. This builds the same filtered report URL as Option 2, using the record's own Id merge value instead of a button merge field. Replace <YOUR_Report_ID> with your report's ID, click Next, set field-level security as appropriate, select the relevant page layout, and Save.

 Formula field editor showing the HYPERLINK formula for the Active Contacts Report field 

Step 4: Verify the Field on Page

You'll see the field on the page, and clicking the link takes you to the filtered report.

Active Contacts Report formula field link displayed on the Account record page 

__________________________________________________________________________________

Written by: Sushil Kumar | Forum Ambassador
Sushil Kumar is a Salesforce Technical Architect at UKG. At the time of writing, Sushil has worked in the Salesforce ecosystem for 15 years, holds 14 Salesforce credentials including Salesforce Application and System Architect. Sushil serves as a Trailblazer Community Forum Ambassador and regularly participates in the community.

Submissions reflect only the opinions of the user who made available the Submission and not the opinions of Salesforce, regardless of whether the user is affiliated with Salesforce, and may contain or constitute products, services, information, data, content and other materials made available by or on behalf of third parties ("Third Party Materials"). Salesforce neither controls nor endorses, nor is Salesforce responsible for, any Third Party Materials, including their accuracy, validity, timeliness, completeness, reliability, integrity, quality, legality, usefulness or safety, or any applicable intellectual property rights. Any Submissions made available through any message board or forum in response to posted questions, or that otherwise purports to answer any questions, including any questions about Salesforce or Programs, are made available for your general knowledge only and should never be relied upon as answers to your specific questions (even if an answer is marked as a "best" answer or with any similar qualifications). You should always contact Salesforce support for answers to your specific questions. Salesforce has no control over Submissions, and is not responsible for any use or misuse (including any distribution) by any third party of Submissions.

If you have questions, tap into the wisdom of our entire Trailblazer Community here: https://trailhead.salesforce.com/trailblazer-community/feed

Numero articolo Knowledge

005336072

 
Caricamento
Salesforce Help | Article