I have a requirement to select child records of selected record on a detail page. This Lightning component, will be used on Account record page and that Account record's related contact records will be displayed with checkbox to select on the page.
I found this code handy to some extent but it displays all the contact records from the org that can be added as child to the selected Account record. In a nutshell, this works in the reverse way of what I am expecting where i need to display already available child contact records with a checkbox to select.
Can anyone please suggest the possible approach w.r.t my requirement above.