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 |
What is a sandbox org? What are the different types of sandboxes in salesforce? : salesforce crm
What are reports in salesforce?
Why do we use Salesforce?
Mention what is the difference between isnull and isblank?
What is test class and why do we need it?
What are the exception handling types in sfdc except try-catch block?
Do we need a namespace to develop lightning components?
What is a Business Process?
What are governing limits in salesforce?
How can you setup governor limit email warnings in apex ?
Do you know about bucket fields in salesforce reports?
What are setup and non-setup objects in salesforce?