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

Will data be lost in a custom field if data type is changed to number from any other data type?

630


Write a syntax and structure of scheduler class?

446


How can you create many to many relationship in salesforce ?

478


How do you unit test a trigger when you don’t know the required fields?

459


When should we use component event and application events?

459


What are static resources? : salesforce visualforce

461


What happens to detail record when a master record is deleted?

401


What is a custom report type? : salesforce reports and dashboards

516


What are custom labels in the salesforce? What is the character limit of custom labels?

589


Explain the force.com platform?

415


What is custom controller? : salesforce visualforce

442


Differentiate between Profile Vs Permission Sets Permissions and Access Settings?

412


List things that can be customized on page layouts?

424


If I want to Insert, Update any record into 'Account'. What trigger I have to use?

457


What are various standard exceptions that salesforce throws?

444