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 are the most important points to be considered while bulkifying a trigger ?
What happens to detail record when a master record is deleted? What happens to child record when a parent record is deleted? : salesforce crm
What is difference between insert and database.insert()?
What is a Workflow Alert?
If you have two record types for an object, do you need to have two page layouts for that objects? : salesforce sharing and security
What is apex scheduler?
What is workflow? : salesforce admin
How to get the external id from other system and update it in salesforce externalid field, if you get null value from another system how you will through an error?
How to create master details relationship between existing records?
What is best practice to refer dynamic custom messages in visualforce with multi-language support ?
what is the difference between apex:datatable and apex:pageblocktable components in visualforce?
What is the use of the <aura:method> tag in lightning ?