Export a Pivot Table and Add Header Actions
Add Export and Refresh buttons to a Pivot Table header, so users download the summary as Excel or CSV and reload the numbers without leaving the screen.
Before the Monday pipeline meeting, a sales manager wants the summary in Excel to paste into the deck, and fresh numbers after a colleague moves a deal. Two buttons in the Pivot Table header cover both: Export downloads the table as it appears, with its totals, and Refresh reruns the query.

Before you start
A screen flow with a Pivot Table on Opportunity, built as in Show a Pipeline Summary and Drill Into Any Cell.
Steps
Add the two buttons
Select the Pivot Table on the screen and click Open Component Builder. In the Header group of the Properties tab, add two Actions:
Export
export
utility:download
Refresh
refresh
utility:refresh
Then set Visible Actions Buttons to 2, so both show as buttons instead of a menu.
An action needs a Name, plus a Label or an Icon Name, or it does not appear. The Name is what the interactions below point to.
Wire Export to the Export To interaction
Open the Interactions tab. Under Header Action Click, add an interaction:
Target Name: pick Export in the list. The picker shows each header action by its label and stores its name,
export.Type: Export To.
Default File Name:
Pipeline review.Default Export View: Formatted Report.
Available File Formats: Excel and CSV.

Export To describes every setting of the interaction.
Pick the export view
Both views export the same grid: the same rows, columns and totals as the screen. They differ in how the values are written.
Formatted Report
Values formatted as on screen: currency, percentages, dates. Excel cells keep a number format.
Sharing or presenting the summary
Details Only
The same values without formatting.
Formulas, or importing into another tool
Users can still switch views in the export dialog. Default Export View only sets the starting choice.
Save and test
Save the flow and click Debug. The header shows Export and Refresh next to the title.
Click Export. A dialog titled Export opens with File Name set to Pipeline review, Formatted Report selected under Export View, and Excel Format .xlsx under Format. With Excel and CSV both allowed, Format offers Excel Format .xls, Excel Format .xlsx and Comma Delimited .csv; Encoding Type appears only for the CSV format. Click Export: the browser downloads Pipeline review.xlsx, laid out like the table.
Change the amount of one deal in another tab, then click Refresh: the cell and its totals update.

Troubleshooting
Related tutorials
Show a Pipeline Summary and Drill Into Any Cell: build the Pivot Table this page starts from.
Show Totals, Subtotals and Stacked Summaries: decide which totals end up in the exported file.
Let Users Filter a Pivot Table: add filter menus next to the Export button.
Was this helpful?
