Salesforce Fact #665 | Dynamic maxrow selection in screen flow datatable

We have a Data Table component type in screen flow. While configuring the row selection for a Data Table, if the Row selection mode is 'Multiple' we can set the min and max row selection values.

Suppose, we want to keep the max row selection value dynamic i.e. it will be based on the length of the source collection and we want to allow the user to select the max number of rows which is equal to length of collection - 1. For this, we can take a number type resource and set its value with the length of the collection and use that one in the maximum selection section.

Attached are the screenshots.










Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow