Native Mobile Data Table
Native Mobile Data Table (nrMobileDataTable) lists records in a Screen Flow and lets users select them. On a phone it shows cards. On desktop it shows a table. You can also force cards, a table, or a compact list.
- It replaces the standard Flow Data Table, which does not work well on Salesforce Mobile.
- It uses only the records the Flow passes in. It does not query again.
- It runs no Apex unless you fill in Field Set Name.
- Editing is off by default. You can turn on pencil or input editing.
This page covers when to use the table, layouts, how to add it to a screen, and selection. Other topics are on these pages:
- Filters and search: search, sort, paging, filters, CSV export, and row actions.
- Display options: fonts, density, Show more, color map, dates, rich text, checkboxes, and editing.
- Properties reference: settings, outputs, copy settings, limits, and the permission set.
- Worked examples.
The permission set is documented on the Properties reference page.
When to use it
- Use it to let users pick one or several records and see a few details of each.
- Use it instead of the standard Flow Data Table on screens that run in Salesforce Mobile.
- Use NC Lookup to pick one record by typing a name.
- Use NC Picklist for a short list of fixed values.
- Use NC Buttons & Tiles for actions, or for picture tiles.
Layouts
Layout (layoutMode) sets how the records look. Values are not case sensitive. A blank or unknown value uses Auto.
| Layout | API value | What the user sees | Good for |
|---|---|---|---|
| Auto (recommended) | auto | Cards on phones. On tablets and desktop, cards when the component is 768 px wide or less, and a table otherwise. It switches when the width changes. | Most screens. |
| Card | card | Always cards, even on desktop. | Picking by picture or by a few details. |
| Table | table | Always a table. On phones the table scrolls sideways inside its own box, not the page. | Many columns. |
| Compact list | list | One line for each record: the selection control, an optional small picture, the title, and the detail values. | Long lists where people pick by name. |
Auto

- table at desktop width

- cards on a phone
Card

- Cards on desktop

- cards
Table

- The table

- table box
- sideways scroll
Compact list

- selection control
- title
- detail values

- list rows
Fields per list row
- Fields per list row (
listFieldCount) applies to the Compact list only. It sets how many detail values each row shows after the title, from 1 to 4. Blank or invalid uses 2. - The values come from Card Detail Fields when set. Otherwise they come from the columns after the title.
- When a row shows more than 2 values and the component is 480 px wide or narrower, the values wrap onto a second line.
- Text values that do not fit end with an ellipsis. Numbers, currency, dates, and checkboxes are not shortened.

- four fields on one row

- Four fields on one row
Page size follows the screen, not the layout. Cards Per Page (Mobile) applies on phones and narrow screens. Rows Per Page (Desktop) applies otherwise. Users tap Load more to see more.
Add it to a screen
- Add a Get Records element that returns All records. Include every field you want to show.

Flow Builder. Return all records. Include the fields to show. - All records
- The fields to store
- Add a Screen element. Drag Native Mobile Data Table onto it.

Flow Builder. Drag the component onto the screen. - Native Mobile Data Table on the screen
- In the settings panel, pick the Object. This sets Object API Name too.

Flow Builder. Pick the Object. - Object
- Pick the Records collection.

Flow Builder. Pick the Records collection. - Records
- Choose the columns, or type a Field Set Name. Optional: type your own headers in Column Labels.

Flow Builder. Columns in order, with labels. - Columns
- Column Labels
- Optional: to show a Date/Time field as a date only, type its API name in Date-Only Fields, under Columns.

Flow Builder. Date-Only Fields under Columns. - Date-Only Fields
- Set Selection Mode. Set Card Title Field and Card Detail Fields if the defaults do not fit.

Flow Builder. Selection and card fields. - Selection Mode
- Card Title Field
- Card Detail Fields
- Under Display, set Layout. For Compact list, set Fields per list row. Set Font size for smaller or larger text.

Flow Builder. Layout choices. - Layout
- Layout choices, with Table ticked

Flow Builder. Compact list adds Fields per list row. - Layout is Compact list
- Fields per list row
- Show Search
- Turn on Show Search and Show Sort if you want them. Set the page sizes and labels.
- Store Selected Records or Selected Record in a variable. To keep the selection when the user goes back, pass the same variable into Selected Records.
- Test on desktop and on a phone.
The settings panel
- Object: pick an object already used in the Flow, or type an object API name and click Use. This sets the record type and Object API Name together.
- Changing the Object clears Records, Field API Names, Card Title Field, Card Detail Fields, Card Image Field, Editable Fields, Column Types, Color Field, Group By Field, Filter Chip Fields, Total Fields, Face Fields, and Priority Field, because fields from another object no longer apply.
- Saved field names the panel does not recognize are kept, not dropped.
- Records: pick a record collection variable, or a Get Records element that returns all records of that object.
- Columns: move fields from Available fields to Shown, in order. Each field shows as Label (API name). A lookup also offers an entry such as Rentable › Name. Pick it to show the related record's name. Get Records must return that field, or the Id shows instead.
- Field Set Name is typed, because Field Sets cannot be listed in the panel.
- When you click Done, the panel checks that an Object and Records are chosen, that Columns or a Field Set Name is set, that Card Detail Fields has 4 fields or fewer, that Filter Chip Fields has 2 fields or fewer, and that Priority Color Map and Group Color Map are valid JSON.
Column Labels
- Column Labels (
columnLabels) is optional. Type headers separated by commas, in the same order as the columns, for exampleName,,Daily Rate. - A blank entry keeps the field's own label. Extra entries are ignored.
- The custom header shows in table headers, on card and list labels, and in the sort picker.
Selection
- Selection Mode (
selectionMode) is none, single (a radio), or multi (a checkbox). The default is single. - Tap anywhere on a card to select it, including on its field values. Tap again to clear it.
- Set Require Selection to make the user pick before Next. Set Required Error Message for your own wording.
- In multi mode a bar at the bottom shows how many are selected, with a Clear button. Turn it off with Show Selection Footer.
- Preselected Records or Preselected Record Ids select records when the screen opens.
Multi select

- checkboxes
- selected cards

- checkboxes
Single select

- radio

- radio