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:
- the selected Flow/version pair
- comparison summary/result values
- the main changes table
- optional detail text from each View Details panel

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:
- Detects that the user is on the Compare Flows page.
- Loads the bundled XLSX library when export begins.
- Opens an export options modal.
- Scrapes the selected Flow/version information from the page.
- Scrapes comparison result values such as analysis time and item counts.
- Scrapes the basic changes table.
- Optionally opens each View Details action to capture detail text.
- Loads the Excel template workbook.
- Populates named ranges and the comparison changes table in the workbook.
- 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:
- a title
- a short explanation of the export
- a checkbox for including View Details panel text
- a note explaining that detailed export is slower but more complete
- Cancel and Export actions
If the user cancels the modal, the export does not continue.

What gets exported
Selected version information
The exporter reads the selected Flow/version values from the comparison page, including:
- Flow API name for version X
- Flow version for version X
- Flow API name for version Y
- Flow version for version Y
Comparison summary and result values
The exporter also reads summary values from the comparison page, including fields such as:
- Analysis Time
- Version Y Last Modified Date
- Version Y Last Modified By
- Version X Status
- Version Y Status
- Added Items
- Updated Items
- Changed Connectors
- Removed Items
Changes table
The exporter scrapes the comparison changes grid and currently captures values such as:
- Label
- API Name
- Change Type
- Details
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:
- find each View Details button in the changes table
- open the detail modal for that row
- scrape the available detail text
- close the modal
- 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:
- loads the template workbook from the extension
- reads named ranges from the workbook
- populates named ranges for Flow/version selections
- populates named ranges for summary/result values
- writes comparison descriptor labels into specific sheets
- writes the changes table rows into the template table area
- resizes the table if rows were added
The current implementation references sheets including:
Comparison DescriptorsComparison Summary and Results
It also expects named ranges such as:
FC_X_FlowApiNameFC_X_FlowVersionFC_Y_FlowApiNameFC_Y_FlowVersionFC_AnalysisTimeFC_Y_LastModifiedDateFC_Y_LastModifiedByFC_X_StatusFC_Y_StatusFC_AddedItemsFC_UpdatedItemsFC_ChangedConnectorsFC_RemovedItemsFC_Changes_FirstDataRow
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:
FlowCompare_<FlowApiName>_<VersionX>_to_<VersionY>.xlsx
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:
- loading the XLSX library
- scraping comparison data
- scraping change details
- generating the XLSX
- export complete
If the export fails, the feature displays an error toast that includes the error message.
How to use it
- Open the Salesforce Compare Versions page.
- Select the two Flow versions to compare.
- Launch Comparison Exporter from the extension.
- Choose whether to include detailed View Details panel text.
- Confirm the export.
- Wait while the exporter scrapes the page and generates the workbook.
- Open the downloaded
.xlsxfile.
Notes and limitations
Current implementation notes:
- The feature is designed specifically for the Compare Flows page.
- It depends on Salesforce comparison-page DOM structure and selectors remaining compatible.
- Detailed export is slower because it opens and reads each View Details panel individually.
- The exporter depends on the bundled XLSX library being successfully injected.
- The exporter also depends on the Excel template workbook being available and containing the expected named ranges.
- If the changes table cannot be found, export may proceed with limited data or fail depending on what is missing.
- Detail scraping depends on the text being present in a reliably readable dialog or panel.