Salesforce Fact #729 | LWC getRecords in screen flow
Suppose we have a lookup component in the screen flow which allows selecting multiple accounts. Now, we have a requirement to get the data of the selected accounts.
We can get that using an LWC which makes use of getRecords wire method to fetch the required data and display in the UI.
References: https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-records.html
https://dev.to/tdrnk/lwc-getrecords-wire-adapter-how-to-retrieve-records-dynamically-apd
Note: The LWC UI styling can further be improved. It is just for demonstration purpose.
Attached are the screenshots.
Comments
Post a Comment