You need to sign in to do that
Don't have an account?
Vacheslav 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!
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!
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.