Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the dashboard component of Chart?

483


What is Apex Managed Sharing?

514


What are objects in salesforce?

496


What is the default timeout period while calling webservice from apex.

526


What is upsert and how external id are beneficial? : salesforce Data Management

516


What is tag in visualforce markup? : salesforce visualforce

426


Can we create a formula type in reports? : salesforce reports and dashboards

524


What are web tabs?

483


What is a lookup relationship in salesforce?

534


Explain Class Constructors in salesforce?

528


What is a CSV file?

501


What are the different types of reports available in salesforce? Can we mass delete reports in salesforce?

432


What are Time-Dependent Workflow Limitations?

455


What are getter methods and setter methods?

439


What do you know about apex?

458