What are some use cases for using the schema class?
Answer Posted / 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 View All Answers
Explain the dashboard component of Chart?
What is Apex Managed Sharing?
What are objects in salesforce?
What is the default timeout period while calling webservice from apex.
What is upsert and how external id are beneficial? : salesforce Data Management
What is
Can we create a formula type in reports? : salesforce reports and dashboards
What are web tabs?
What is a lookup relationship in salesforce?
Explain Class Constructors in salesforce?
What is a CSV file?
What are the different types of reports available in salesforce? Can we mass delete reports in salesforce?
What are Time-Dependent Workflow Limitations?
What are getter methods and setter methods?
What do you know about apex?