Filters and search
Search, sort, paging, filters, CSV export, and row actions on Native Mobile Data Table.
Search, sort, and paging
- Show Search (
showSearch) adds a search box. It filters the shown values on the device. - Show Sort (
showSort) adds sorting. Desktop tables sort by the column header. On a phone, cards and list rows get a sort picker. - Group By Field shows records under section labels with counts.
- Filter Chip Fields shows tap-to-filter chips for one or two fields, such as Status.
- Cards Per Page (Mobile) and Rows Per Page (Desktop) set how many records show first. Users tap Load more for the rest.



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 type | Filter |
|---|---|
| Picklist, checkbox | A 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 Time | Contains (ignores upper and lower case). |
| Number, currency, percent | From and To (both ends are included). |
| Date, date/time, Date-Only Fields | From 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.
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.
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.
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.
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.
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.
- Filters, Search, and filter chips all apply together. A row must match all of them. The current sort and group order apply to what is left.
- Clear filters resets filters, Search, filter chips, and sort together.
- Export CSV uses that same filtered and sorted set, including rows not yet shown by Load more.
- Totals, the row count, and Load more follow the filtered rows, the same as with Search. Totals can still include unsaved inline edits (existing totals behavior). The CSV file does not.
- Row actions are available on the rows that are on screen. Picking an action does not change filters, Search, or selection.
- On a phone, and when the component or the browser window is 768px wide or less, filters are available and Export CSV is not. Row actions stay available on cards, List layout rows, and tables.