Comparison Exporter

Overview

Comparison Exporter exports Salesforce Flow version comparison results to an Excel workbook based on a pre-defined template.

The feature is designed to help users document Flow version comparisons in a more structured and reusable format by taking the information shown on the Salesforce comparison page and writing it into an .xlsx file.

Current behaviour supports:

Comparison Exporter Side Bar Module

Where it appears

Comparison Exporter is intended for the Salesforce Compare Flows page in Setup.

The implementation is designed for the comparison workflow where a user selects two Flow versions and then exports the comparison output through the extension.

What the feature does

Comparison Exporter currently provides the following functionality:

  1. Detects that the user is on the Compare Flows page.
  2. Loads the bundled XLSX library when export begins.
  3. Opens an export options modal.
  4. Scrapes the selected Flow/version information from the page.
  5. Scrapes comparison result values such as analysis time and item counts.
  6. Scrapes the basic changes table.
  7. Optionally opens each View Details action to capture detail text.
  8. Loads the Excel template workbook.
  9. Populates named ranges and the comparison changes table in the workbook.
  10. Triggers a browser download of the generated XLSX file.

Export options modal

Before the export begins, the feature opens a modal asking whether the export should include detailed change text.

The modal currently includes:

If the user cancels the modal, the export does not continue.

Comparison Exporter Export Module

What gets exported

Selected version information

The exporter reads the selected Flow/version values from the comparison page, including:

Comparison summary and result values

The exporter also reads summary values from the comparison page, including fields such as:

Changes table

The exporter scrapes the comparison changes grid and currently captures values such as:

The Details column may either remain blank or be populated from the View Details panels, depending on the export option selected.

Optional detailed export

If Include “View Details” panel text is enabled, the exporter attempts to:

  1. find each View Details button in the changes table
  2. open the detail modal for that row
  3. scrape the available detail text
  4. close the modal
  5. continue to the next row

This produces a richer export, but it is slower because the feature must iterate through the comparison rows one at a time.

The implementation also includes logic to ignore obviously bad or interrupted overlays when scraping detail content.

Excel template behaviour

Comparison Exporter writes the output into a template workbook rather than creating an unstructured spreadsheet from scratch.

The current implementation:

The current implementation references sheets including:

It also expects named ranges such as:

If the required starting range for the changes table is missing, the export fails with an error.

Downloaded file

After the workbook is populated, the exporter creates a browser download for the XLSX file.

The filename is built from the comparison context and follows this pattern:

The implementation also sanitises the filename values before download.

User feedback

Comparison Exporter uses toast notifications to communicate progress and status.

Examples of progress states include:

If the export fails, the feature displays an error toast that includes the error message.

How to use it

  1. Open the Salesforce Compare Versions page.
  2. Select the two Flow versions to compare.
  3. Launch Comparison Exporter from the extension.
  4. Choose whether to include detailed View Details panel text.
  5. Confirm the export.
  6. Wait while the exporter scrapes the page and generates the workbook.
  7. Open the downloaded .xlsx file.

Notes and limitations

Current implementation notes: