tsalb/lwc-utils

Collection Datatable - Can this work for non-inserted records / collections?

Opened this issue · 1 comments

In a Flow, if I populate a record collection variable with records that will be inserted, they cannot be surfaced using collectionDatatable. Can this feature work for non-inserted records?

tsalb commented

Investigated and this is a no-go for now.

There is a Salesforce Dependency for Custom Property Editors to mature a bit (and backwards add some api).

Right now the limitation is that I don't have access to the sObject name selected during the screen flow setup without depending on the CPE framework. There was a longer discussion in the SFXD Discord at one point, but the tl;dr is that CPE overhead is too high to undertake for an open source lib such as this.

One or more of the following needs to happen, before I can deliver this:

  • targetConfig and/or propertyType needs to pass down the selected SObject name by the user without resorting to CPE.
  • CPE variables such as inputVariables, genericTypeMappings or builderContext need to be passed into a screen component without having to depend on the CPE interface.