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
Mention what are the actions available in workflow?
Can we make a lightning component that shows up in both the mobile and the desktop user interfaces ? : salesforce lightning component
Mention what is the difference between isnull and isblank?
Difference between external id & unique id?
Will one workflow effects another workflow?
How many ways are there to call an apex class?
How can we deploy components to production org ? : salesforce lightning component
Explain any scenario occurred you to work beyond governor limits?
Where can you make a field required?
What is Sales cloud & Service cloud?
What are the Best Practices of Creating Contact Sharing Rules?
Can we make callouts from batch apex?
What is the use of implements in lightning component? : salesforce lightning component
Is it possible to skip steps in approval process? : salesforce workflows and approval process
What is the difference between a 'profile' and a 'role'?