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.
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.
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.
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.
Navigate to Setup > User Interface > Lightning App Builder. Open the Account record page you want to modify, or create a new one.
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.
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.
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.
See the example report below, filtered using Account ID.
Navigate to Setup > Object Manager > Account > Buttons, Links, and Actions. Click New Button or Link and configure as follows:
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.
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.
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.
See the example report below, filtered using Account ID.
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.
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.
You'll see the field on the page, and clicking the link takes you to the filtered report.
__________________________________________________________________________________
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
005336072

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.