Using the Avonni Activity Timeline for Opportunity Field History

Track Opportunity field changes visually with the Avonni Activity Timeline component. Display field history as a timeline directly inside your Salesforce Flows.

Using Avonni's Activity Timeline component, you can display Opportunity field history changes in a structured, linear format. This requires tracking to be enabled at the object level and a server call to retrieve OpportunityHistory records. Below is the configuration path.

Prerequisites:

  1. Enable field history tracking for the Opportunity object via Setup.
  2. Create a record ID variable to hold the current record's ID.
  3. Execute a Get Records query on OpportunityHistory, filtering by Opportunity ID matching your variable.
  4. Sort results by CreatedDate descending, pull all records.

Configuration steps:

  1. Add an Avonni Activity Timeline component to your screen.
  2. Set orientation: vertical, sort direction: descending, max visible items: 5.
  3. Bind the OpportunityHistory collection as your data source.
  4. Map the following fields:
Title: Stage Name | Date: Created Date | Fields: Amount, Previous Amount, Probability, Close Date

Then add the flow to your Opportunity record page layout via App Builder. Select your flow, enable "Pass record ID into this variable" to inject the current record context. The timeline will render all history changes with the mapped fields displayed chronologically.

You can apply this same pattern to any object with field history tracking enabled. The component handles the rendering; you control the data source and field mappings.

Avonni Activity Timeline for Opportunity Field History
Documentation

Build Salesforce Solutions Faster

Save time, reduce costs, and see your Salesforce projects come to life faster.