Display a Related List of Schedules on Historical Record Pages
If your association uses scheduled payments, staff may want to view an account's schedules directly from a historical record (such as memberships, registrations, or merchandise). This recipe provides one way you can easily accomplish this.
Recipe Prep
Before completing this recipe, you first need to:
- Enable Lightning Experience.
- Enable Scheduled Payments.
To make this recipe, you should understand:
- How to configure Lightning Experience record pages (external).
Ingredients
You will add just one ingredient to your org to make this recipe:
Name | Type | Description |
---|---|---|
Related List - Single | Lightning Component | Displays a related list of schedule records for the account related to the engagement record. |
Directions
In this example, we will update the record page for memberships, but you can follow these steps for any of the other historical records, such as registrations or merchandise.
In Lightning, go to a membership record and edit the page.
In Lightning App Builder, add a Related List - Single component to the page and ensure it's selected.
In
Parent Record
, selectAccount
.In
Related List
, selectSchedules
.At least with Salesforce Winter '19, you are limited to showing all schedules for the account; you cannot filter a related list to only show the schedule(s) corresponding with the specific historical record being viewed. In case you were eyeing the filters in the Set Component Visibility section, they won't do the trick because that simply determines if the entire component should be visible or not.
One way to more easily identify the corresponding schedule(s) is to add a formula field on the membership object that displays the order number and to also expose the order number on the Schedules related list.