Get the values for all picklist fields for a particular record type by using the new
ConnectApi.RecordUi.getPicklistValuesByRecordType(objectApiName, recordTypeId)
method. We delivered this feature due to your idea on IdeaExchange.
Where: The feature is available in Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.
Why: Previously, in Apex, you couldn't directly get picklist values that were specific to a record type without making callouts.
How: This method is especially useful for getting dependent picklist values. For
example, if an object has a tree of dependent picklists, such as Continents__c,
Countries__c, Cities__c, use this method to get all the values
for each picklist in one request via the
ConnectApi.PicklistValuesCollection.