Skip to main content

When searching for records via my flow the data table component from unofficialSF doesn't display any records

 

 https://unofficialsf.com/datatable-lightning-web-component-for-flow-screens-2/

I've followed the below guide to get individual contact records 

 

https://www.youtube.com/watch?v=_Zzj-EDK4vE&t=207s but when adding the search criteria such as a name 

 

@Lightning Flow DiscussionsDatatable Component Within Screen Flow No t displaying RecordsI  then get the below all done instead of the results populating in the data table 

Screenshot 2024-02-05 161916.png

despite there being records 

Screenshot 2024-02-05 162024.png

1 resposta
  1. 6 de fev. de 2024, 15:20

    Unless you're using something like @Josh Dayment's Data Fetcher, you cannot do the search and display the results on the same screen. You have to take the search input, do a get records with it to build a collection of records, then use a second screen to display the results. You do not have things in the correct order in your flow for it to work properly. I'd flow chart it out, step-by-step, and make no assumptions about what you think is happening. Write down everything you need, no matter how small. Examples of questions to ask yourself: Did you give the user somewhere to enter a search term? Does the search term exist in a single field on a record that you can locate? Did you use that search term to find records? Did you connect your search results to the data table? Did you display the data table to the user after you got results? 

0/9000