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
punith narasimhapunith narasimha 

what is Schema and when to use how to use

Hi Every one ,
Could you please explain what is Schema ,in which case we need to use Schema , how to use and what is advantage of Schema in salesforce
i am new to this plese explain about Schema
thanku
Jayanth ThathapudiJayanth Thathapudi
Hi Punith,

Please find the below link

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_schema.htm

NOTE: Mark as the best answer if it is helpful to you.

Thanks,
Jay
 
Ajay K DubediAjay K Dubedi
Hi Punith,
The Schema namespace provides classes and methods for working with schema metadata information. We implicitly import Schema.*, but you must fully qualify your uses of Schema namespace elements when they have naming conflicts with items in your unmanaged code. If your org contains an Apex class that has the same name as a sObject, add the Schema namespace prefix to the sObject name in your code.
To Check Object’s Schema In Salesforce follow this link, this will give you full information about schema builder :
https://webkul.com/blog/check-schema-objects-salesforce/
Link for more information:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_schema_namespace_using.htm
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_schema.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi