How To View Child Records in a Timeline For a Parent Record
Use "Timeline" Lightning Component from AppExchange
At times, in Salesforce, you may want to see the child records for a parent record in a timeline or in chronological order. For example, if we talk about a particular Account, you may want to see the opportunities, cases, orders, and contacts in chronological order to understand the chain of events. Things like after coming in touch with a new contact for the customer, the number of opportunities increased, or when a case was created, the number of orders decreased.
Thanks to Force.com Labs from Salesforce, we now have a "Timeline" Lightning component on AppExchange (for FREE) that allows you to see related records of any object in a whole new way. You can have the entire history of an Account in front of you, like when the Contacts were created, when the Opportunities & Cases were created or closed, etc.
The standard Activity Timeline component only supports Events, Tasks, and Emails. However, this component shows any standard or custom object record in a timeline format. This can be a great and cool addition to your existing Salesforce setup with minimal effort. It will provide useful insights to users and help them get to know their customers better.
The timeline component setup is fairly straightforward. First, you create a Timeline Configuration record that acts as a parent record. Then add child records to it so the timeline on the parent object will show all the child or related records in chronological order as per the date selected to sort by in the configuration. You can also filter the related records if required, e.g., show only Closed Won opportunities or Open Cases on the Account. The timeline component supports External Objects too!
The records displayed in the timeline can be expanded and you can select which key fields to display in the record card. Have granular control over where to navigate the user when he or she clicks on the record in the timeline. Finally, customize the image icons for object records in the timeline.
The Timeline Lightning component on AppExchange seems to be useful and interesting. Hence, here is a short guide to get you started with the component that won't take more than 15–20 minutes of your time.
This guide will cover how to:
Install Timeline Component from AppExchange
Assign Timeline User Permission Set to Users
Create a Timeline Configuration Record
Add Child Objects
Add Timeline Component to Lightning Record Page
Test Timeline Component
Hands-on guide to a working solution which I immediately implemented — Jurgen
References & Useful URLs
Timeline Lightning Component Listing on AppExchange - https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000G0yN3UAJ
Timeline Lightning Component: User Guide - Quip Document (15 mins) - https://quip.com/2Q4oAB2RLGnQ