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 test class and why do we need it?
Write a trigger to insert a contact and user when the account is created?
Explain different relationships in SFDC?
Which permission is required to set the running user other than you in dashboard? : salesforce admin
What is an Auto-Response Rule?
What is a lead?
What are the different types of object relations in salesforce? How can you create them?
In trigger, lets say you have system.debug() statement after adderror() method. Will system.debug() be statement executed in trigger after adderror() method?
Do you know about trigger.new?
What are the different api's in salesforce ?
How to undelete a record from recycle bin with the help of dml?
What is trigger.old and when do you normally use it?