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
What is a visualforce component?
What is a solution?
What is analytic snapshot ?
What happens to a detailed record when a master record is deleted? What happens to child records when a parent record is deleted?
When to use public class and when to use global class?
what is analytical snapshot?
Difference between roles and profiles?
How many records can a sosl query return?
For which criteria in workflow “time dependent workflow action” cannot be created?
What is the difference between public and global class in apex?
How to delete the user from salesforce?
What is cloud computing security?
What is a governor limit in salesforce?
Can we change already existing lookup relationship between 2 objects to master detail relationship? : salesforce objects & fields
How many soql we can perform per transaction?