Skip to content
Branch: master
Find file History
Latest commit 6c58d59 May 1, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
config added datatable and scriptDisplay components Jan 22, 2018
mdapioutput fix for $1 Feb 8, 2018
.forceignore added datatable and scriptDisplay components Jan 22, 2018 Update Mar 10, 2019
sfdx-project.json added datatable and scriptDisplay components Jan 22, 2018


3/10/19 Update

See for information and documentation on the new version.

A Flow Screen Component

The Datatable_FlowScreenComponent is derived from the datatable lightning base component .

The datatable is populated by passing in an SObjectCollectionVariable.

NOTE: This is currently NOT a fully declarative screen component (meaning that you can't use it without modifying code)The FlowScreens interface does not yet support dynamic object types, so it's necessary to define, in the cmp file, the type that you're going to be passing in. In the example below, the attribute myData is set to the exact custom object type that will be passed.

screen shot 2018-01-21 at 10 06 34 pm

(The goal we're working towards is where the Datatable will be able to receive any object from Flow and not care what it is until runtime.)

The selected rows are made available to the Flow via the selectedRows attribute, which is also a collection of a specific Salesforce SObject.

screen shot 2018-01-21 at 9 55 25 pm

Install this Component Into Your Org

Installation information for this component.


Video introduction The core datatable component is described here.

Currently Flow gives you the opportunity to define up to 5 columns. For each column that you want to use, specify the label you want to see, the API name of the field you want to see, and the type that Datatable should interpret the data as.

The basic mechanism for using a datatable is:

  1. Determine the object you're going to list in the table
  2. Edit your component to set the type of myData and selectedRows to be collections of that object:

screen shot 2018-01-21 at 10 06 34 pm

3) Load in the set of list values by doing a RecordLookup or FastLookup. Make sure you extract field values corresponding to the columns you're going to be displaying. 4) After the Datatable, Loop over the selectedRows and process the rows that were selected.


Most of the functionality of this underlying base component has not yet been exposed to Flow. We welcome assistance expanding the range of utility of Flow Components.


Want to suggest an improvement or report a bug? Do that here

Learn more about how Flow Components work

Know a little javascript and want to add some improvements? {Pull requests are welcome}(/pulls) If you're thinking of adding much complexity to the user interface, though, you probably should fork the repo, because we want to keep this baseline version easy-to-use.

You can’t perform that action at this time.