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
Mohit Kumawat 20Mohit Kumawat 20 

Required fields in common standard objects

What are the required fields to be added for creating the most commonly used salesforce objects(In Platform Developer I). So that I can know which apex code can generate errors(in case when value is not added for required field)?
SandhyaSandhya (Salesforce Developers) 
Hi,

Refer below salesforce  document which has the list of standard objects and fields with details.

https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_list.htm
 
Best Regards,
Sandhya
Shubham NandwanaShubham Nandwana

Hi Mohit,
There are no. of standard objects provided by salesforce like Accounts, Leads, Cases, Opportunities. You can read about standard and custom objects at https://trailhead.salesforce.com/en/modules/data_modeling/units/objects_intro.
To check what all fields are required you can use the object manager. Go to Setup->Object Manager->select your object->page layout->page layout. You can see the required field with a red astrict (*) mark there.

You can also create a required or non-required field from field and relationship column in the left bar.

Hope it helps.

Shubham Nandwana.
AppPerfect Corp.
salesforce@appperfect.com
408-252-4100
http://www.appperfect.com/services/salesforce/
Salesforce Development & Operations Experts