Activity Forums Salesforce® Discussions What is the benefit of the Schema class?

  • Laveena

    Member
    September 19, 2019 at 12:22 pm

    Hi Saddam,

    By 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();

    Thanks

Log In to reply.

Popular Salesforce Blogs

Success Stories – How DemandBlue Helped Its Clients Improve Revenue Recognition with Salesforce Revenue Cloud Implementation

Blog in

Businesses that deal with subscription-based contracts, usage-based billing or other complex contracts face several difficulties in managing their billing cycle. Though Salesforce CPQ implementation does the heavy-lifting…

Popular Salesforce Videos