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
RaffusRaffus 

How to put sObjects in combox in Lightning Web Component?

I want to show sObjects in a custom picklist like in Combobox in LWC- I know how to do with single object but am not able to understand how to fetch sObjects. Afer selecting that sOject - I need to display the details for that object.
Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

You can fetch the list of Sobjects the you can use this query to get it.
 
SELECT  QualifiedApiName FROM EntityDefinition order by QualifiedApiName

Please find the below question (https://salesforce.stackexchange.com/questions/100668/retrieve-api-names-of-all-object-in-salesforce-org-using-soql) which suggests how to get all the names of Sobjects in you system.



If this solution helps, Please mark it as best answer.

Thanks,