function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vacheslav AronovVacheslav Aronov 

Get the Developer Name for Record Types using schema methods

Salesforce announced that now we can get developer name for record type more easily: https://releasenotes.docs.salesforce.com/en-us/summer18/release-notes/rn_apex_developer_name.htm

What is the difference between old and new approach getting Developer Name for Record Types announced in Summer 18 release?
Can someone show examples to see the difference?
Thanks!
Jithesh VasudevanJithesh Vasudevan
Hi Vacheslav,

Old approach was to get it with the help of SOQL. It was something like below,

 SELECT Id,DeveloperName, Name FROM RecordType WHERE SobjectType='Account' 

Now that it has a new approach, we can get the developer name in one line in Apex.