LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

Datatable v4.08 can't access record collections that are filtered using standard Collection Filter component

Open boooney opened this issue 2 years ago • 2 comments

Steps to reproduce the behavior:

  1. Use Get Records Element to retrieve a record collection of a custom object
  2. Use standard Salesforce Collection Filter Element to filter the record collection
  3. Create a screen component
  4. Add a new Datatable component to screen

Expected behaviour

4 In the Display which records? box, I try to select the filtered record collection from step 2

Actual behaviour

  1. The filtered record collection isn't available to select. I try to paste the collection API name in and am able to save the screen component, but when I save the flow I get the error message "The input parameter "_ Datatable Record Collection" can accept multiple values, so the assigned value must be a flow variable with the isCollection property set to true".
  2. When I try to run the flow, I get an error message Error element scrOrdersRequested (FlowScreen). The "scrOrdersRequested" element in your flow has validation errors.

Screenshots

If applicable, add screenshots to help explain your problem. Flow: image

Cannot see the filtered record collection in the "Display which records?" box image

If I try to manually paste the collection API name in and try to save the flow: image

try to run the flow image

boooney avatar Aug 26 '22 00:08 boooney

This is an issue with the flow comboBox base component. For now, just add an assignment element to assign the filter output to a variable that you can then use in the Datatable.

ericrsmith35 avatar Aug 26 '22 00:08 ericrsmith35

Super helpful. Thanks for all of your work on this solution! We are an affordable housing nonprofit org and use it all the time.

On Thu, Aug 25, 2022, 5:16 PM Eric Smith @.***> wrote:

This is an issue with the flow comboBox base component. For now, just add an assignment element to assign the filter output to a variable that you can then use in the Datatable.

— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/issues/1190#issuecomment-1227877217, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXCG3JLBOONUZ6ISR2JUHTV3AEGLANCNFSM57U5JW4Q . You are receiving this because you authored the thread.Message ID: @.***>

boooney avatar Aug 26 '22 02:08 boooney