function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jayesh Babu A VJayesh Babu A V 

How to get the list of patients in my lightning app?

Hi, I am new to salesforce and i am creating a lightning app which should list the patients in a lightning:datatable. I have searched a lot and i couldn't find anything on  this. Is there any way to get the list of patients using soql queries and display it in a datatable, just like we do for Leads and other objects?
Thanks in advance.
vishal-negandhivishal-negandhi
Hi Jayesh, 

Here's an example for you : https://www.sfdcpoint.com/salesforce/lightning-datatable-example-salesforce/
It shows how you can show "Accounts" data in a lightning:dataTable, you need to follow the same approach for "Patients" object that you are using.
Hope this helps.

Best,
Vishal
Jayesh Babu A VJayesh Babu A V
Thanks for ur asweer but my question is not about displaying data in a datatable. Its about getting the list of patients. There is no 'Patients' object. So, which object represent a patient?