Screen Flow components Schedule a call

Filters and search

Search, sort, paging, filters, CSV export, and row actions on Native Mobile Data Table.

Search, sort, and paging

Table sorted by Rate on desktop
A desktop table sorted by the Rate header.
Cards with search and the sort picker at 400 px
Cards with search and the sort picker.
Table sorted by Rate at 320 px
A table at 320 px wide scrolls sideways inside its box.

Filters

These features are optional and off by default. An existing screen does not change until you turn a setting on.

Turn on Enable Filters to add filters for every visible column that can be filtered (from Field API Names, or from the Field Set).

Column typeFilter
Picklist, checkboxA choice list: Any plus each value found in Records. Checkbox values are the words Checked and Unchecked, the same words Search uses. The table still shows a check mark, not those words.
Text, email, phone, URL, lookup (by name), Location, Address, and TimeContains (ignores upper and lower case).
Number, currency, percentFrom and To (both ends are included).
Date, date/time, Date-Only FieldsFrom and To dates (both ends are included). A date/time value is compared by its local day in the browser's time zone. See Dates and time zones.

Rich text columns and the Card Image Field get no filter. A picklist or checkbox with no values in Records gets no filter. Location, Address, and Time fields are treated as text and get a Contains filter. Multi-select picklists also use Contains, not a choice list.

Filter bar on a desktop table. Clear filters is on the right.
Desktop filter bar on an Accounts table: Search is United, Employees from is 1,000, and rows are sorted by Employees. Select the image to enlarge.

On a wide desktop or tablet, a filter bar stays visible above the records, with one control per column and a Clear filters button.

On a phone, or when the component is 768px wide or less (the same mobile rule as the rest of the table), a Filters button is shown (44px tall). When filters are set, the button shows the number of filtered columns, for example Filters (2). Tapping it opens a filter sheet with one control per row, 16px input text (so the phone does not zoom), and Clear filters and Done buttons (44px tall). Done closes the sheet and keeps the filters.

Filter sheet on a phone. The sheet lists Account Name, Industry, Account Type, Account Rating, Employees from and to, Annual Revenue from and to, Billing City, and Created Date from and to.
Phone: the Filters (1) button and the open filter sheet, with Industry set to Apparel. Clear filters and Done are at the bottom.

Filters run on the screen, on the Records collection the Flow already passed in. The component does not query again. A row must match every active filter, the Search text, and any filter chips. The current sort, and the current group order when Group By is on, apply to what is left. If you type a From or To for a column, a record with a blank value in that column is left out.

Clear filters resets the filters, the Search text, the filter chips (back to All), and the sort (back to the order of the Records collection).

When nothing matches, the No Search Results Message is shown. The filters stay on screen so the user can change them. The row count, Load more, and totals follow the filtered rows, the same as with Search. Export CSV, when it is on, is greyed out until something matches. Filters are not saved. They are reset when the screen loads again.

Table with no matching records
No records match your search. The filter bar stays on screen so the filters can be changed. Select the image to enlarge.

CSV export

Turn on Enable CSV Export to add an Export CSV button. The button is shown on desktop and wide tablets when both the component and the browser window are wider than 768px. It is hidden when Salesforce reports the device as a phone, and whenever the component or the browser window is 768px wide or less (for example a narrow column on a desktop page), even when the setting is on. This is the same rule that switches the table to its phone layout. On desktop, the Export CSV button sits above the filter bar, on the right.

Export CSV button above the filter bar
Desktop Export CSV button, enabled, above the filter bar on the right. Search and an Employees from filter are applied. Select the image to enlarge.
Disabled Export CSV button
Export CSV is greyed out when nothing matches. The filter bar stays on screen. Select the image to enlarge.

The file includes every record that matches Search, filter chips, and filters, in the current sort and group order. This includes rows that are not yet on screen before Load more. The file has the visible columns in table order. The header row uses the column labels (Column Labels are used when they are set).

Values look like the table text. Dates use the Date Format, currency includes its symbol, lookups use the name, and rich text is exported as plain text. Blank cells stay empty. Checkbox columns are exported as Checked or Unchecked. If a visible column is an image, the file has the image URL.

The file uses saved values only. Unsaved inline edits are not included.

Text that starts with =, +, -, or @, or with a tab or a return, gets a leading apostrophe so a spreadsheet shows the text instead of treating it as a formula. A negative number that the component formatted itself, for example -$5.00, is left as it is. Values with commas, quotes, or line breaks are quoted.

The file is UTF-8 with a byte order mark.

If CSV File Name is blank, the file is named records-YYYY-MM-DD.csv, using today's date. If you type a name, .csv is added when needed. Characters that are not allowed in file names become dashes. A name longer than 120 characters is shortened. Leading or trailing dots, spaces, or dashes are removed.

The button is greyed out when nothing matches. When the Records collection is empty, only the empty state is shown (no Export CSV button). The file is built in the browser and downloaded on the device. Nothing is sent to a server.

Row actions

Set Row Actions to a comma-separated list, each Label or Label:value. When no value is given, the value is the label. Duplicate values are dropped, and at most 10 actions are shown. Example: View,Return:return,Extend rental:extend.

Do not put a comma or a colon in a Row Actions label. Those characters are separators: the comma separates actions, and the colon separates the label from the value. A value must not contain a comma.

On a desktop table, a last column shows a menu (vertical dots) on each row. Cards show an Actions button on each card. The List layout shows a menu (vertical dots) on each row. This is the List choice on the Layout setting (one-line rows), not the Compact density switch. A table on a phone keeps the per-row menu column. Card, List layout, and table menus open with automatic alignment, so the menu stays on screen on a narrow phone.

Row actions menu on a table
Desktop table with a last-column actions menu. View and Call are shown on a Products table. Select the image to enlarge.
Row actions menu on a list. The Compact density switch is on in this shot. It is not required for the List layout.
List layout with a per-row actions menu: View and Call on a Products list. Select the image to enlarge.

Picking an action sets Selected Row Action (the value), Action Record Id, and Action Record for the row whose menu was used, not the selected row. A selection is not required. It does not select or deselect the row, and the selection outputs do not change. Picking again replaces the three outputs.

Go to Next on Row Action is off by default. When it is off, the user stays on the screen, and the Flow reads the outputs on the next Next. When it is on, picking an action also moves the Flow to the next screen, or finishes when the screen has Finish instead of Next. That action-Next proceeds even when Require Selection is on and nothing is selected. Require Selection still applies to a later normal Next: if nothing is selected, Next is blocked and the Required Error Message is shown. The default message is "Please select a record." The Flow can set a different message.

Opening the Actions button or the dots menu remembers the row. Picking an action such as View or Call then sets the three outputs, and goes to the next screen when Go to Next on Row Action is on, even when Require Selection is on and nothing is ticked. A tap right after the menu closes does not select the row or cancel the action. A later normal Next with nothing selected still shows the Required Error Message.

Typical use: a Decision after the screen, based on Selected Row Action, then Get Records or Update Records on Action Record Id.

How filters, export, and row actions work together

Each feature is optional and off by default. An existing screen does not change until you turn a setting on.