Instructions for Utilizing a Data Table
I can hardly believe it, but my favorite custom component, the data table, is now a standard component available in Flow! Although not all the features are currently supported, it’s still a major step forward and incredibly exciting to see. In this article, we’ll provide a detailed guide on how to use the data table component.
(Note: If you require more advanced features, it’s recommended to download the custom component instead.)
- Label and API Name The default label can be edited, so only the API name needs to be typed. If necessary, the label can be changed.
- “Use Label as the Table Title” By default, this option is unchecked, which means that the table has no title.
- Configure Data Source: Source Collection Select the record collection variable that contains the records to be displayed in the table.
- Configure Data Source: Row Selection Mode Choose from multiple records, one record, or view only (no selection).
- Configure Data Source: Minimum/Maximum Row Selection If multiple selection is allowed, specify the minimum and maximum number of records that can be chosen.
- Configure Data Source: Default Selection If selection is allowed, specify the record collection variable to be preselected. If the records in the default selection are not in the source collection, this setting is ignored.
- Configure Columns: Source Field For each column, select the field to be displayed.
- Configure Columns: Column Options Use a custom label for each field.
- Configure Columns: Default Text Overflow Mode Specify how the column name will be displayed if the text is too long.
Output: Selected Rows and First Selected Rows When using the data table, there are two output variables: one is a collection variable containing all selected rows, and the other is a single record variable containing the first selected row.
It’s important to note that the first selected row variable will contain the first record in the final list, based on the order of the selection, not the order in which the options were presented. For example, if record #3 was clicked first and then record #2, the variable will still return record #2 as the first selected row.
I hope this information is helpful for you.