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

What is a visualforce component?

471


What is a solution?

466


What is analytic snapshot ?

557


What happens to a detailed record when a master record is deleted? What happens to child records when a parent record is deleted?

464


When to use public class and when to use global class?

493


what is analytical snapshot?

487


Difference between roles and profiles?

506


How many records can a sosl query return?

448


For which criteria in workflow “time dependent workflow action” cannot be created?

498


What is the difference between public and global class in apex?

551


How to delete the user from salesforce?

420


What is cloud computing security?

471


What is a governor limit in salesforce?

437


Can we change already existing lookup relationship between 2 objects to master detail relationship? : salesforce objects & fields

399


How many soql we can perform per transaction?

506