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
Salesforce Dev199Salesforce Dev199 

How to import custom object fields in LWC js file

Hello Experts,

I dont find any standard documentation on importing custom object and its field to import in lwc js.

Like how do we even import custom obect's picklist and show them on frontend? 

Can anyone help me with this?
Best Answer chosen by Salesforce Dev199
Darshit Pathak 10Darshit Pathak 10

You can import custom fields of the sObject using @salesforce/schema in lwc js.
for more info refer this link : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_schema 
If it helps mark this as best answer!

All Answers

Naveen KNNaveen KN
We have a standard way to create objects and fields from the spreadsheet.

Go to setup > object manager > Click Create an object from Spreadsheet option 

Please comment if you are looking for something different. 
Darshit Pathak 10Darshit Pathak 10

You can import custom fields of the sObject using @salesforce/schema in lwc js.
for more info refer this link : https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_schema 
If it helps mark this as best answer!

This was selected as the best answer