What are some use cases for using the schema class?



What are some use cases for using the schema class?..

Answer / apoorva mathur

By using Schema class you can retrieve data from server without SOQL query. for eg- get recordTypeId without soql query

Id contRecordTypeId = Schema.SObjectType.Contact.getRecordTypeInfosByName().get('NameOfRecordType').getRecordTypeId();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

What is the use of implements in lightning component?

0 Answers  


What are web tabs?

0 Answers   Cap Gemini,


What are the Data Validation Rules?

0 Answers  


How to create a campaign in salesforce lightning?

0 Answers  


What is roll-up summary field?

0 Answers  


What is a solution?

0 Answers  


How can we deploy components to production org?

0 Answers  


What is the difference between whoid and whatid?

0 Answers  


Explian trigger events?

0 Answers  


What is analytical snapshot in salesforce.com ? : salesforce admin

0 Answers  


What are list of tools are avaliable in salesforce lightning ?

0 Answers  


How to handle comma within a field while uploading using data loader?

0 Answers  


Categories