Check out the latest Datatable improvements!
Welcome to the next major release of Datatable. There are a couple of amazing new features along with a few minor bug fixes.
• There is now a new Remove Row Action available that allows the removal of individual rows from the Datatable. This can be useful in scenarios such as using the Datatable to display a list of items in a shopping cart and needing to provide users with the ability to remove items from the list.
In addition to setting a maximum number of records, you can specify the icon and color to be used for the action and put the action column on the left or the right of the Datatable.
New outputs are the collection of removed records, the collection of remaining records and the number of records removed. This functionality works for both Salesforce objects and Apex Defined records.

You can even use this action to “select” records and specify a limit on the number of records that can be acted on. This allows you to remove records from the Datatable once they have been selected.

As a time-saving bonus, even if you are not including a remove row action, the new Remaining Rows output collection will contain all the Datatable records including all Edits that were made to the records. You no longer must add extra steps to your flow to combine the edited records with the original records. (How to use both the Selected and the Edited records in a Datatable)

• There is a new option to display the number of Selected Records in the table header. Even better, with this release, selected records are now PERSISTENT once selected. Performing table actions such as Pagination, Sorting, Searching, Filtering and Removing Rows will always persist all previously selected records.

• To help with debugging flows where you have multiple Datatables on the same screen, the Console Log outputs will identify the Datatable Header value for each console log statement. To help protect sensitive information, record and field values will no longer show in the console log or debug log outputs. You can still choose to override this behavior in your sandboxes with a couple simple attribute changes in the source code.


Find the new package install links here.


