This article refers to the following three links:
Http://www.tgerm.com/2012/01/recordtype-specific-picklist-values.html?m=1
Https://github.com/abhinavguptas/Multi-RecordType-Sobject-Picklist-Describer
Http://bobbuzzard.blogspot.com/2012/01/record-type-picklist-values.html
We know that the record type can set different profiles to display different values for a field of type picklist, but in the Apex API, the values of the picklist that are taken out of the schema are all value, The specified values cannot be fetched directly from the specified method. The above three links can be a good solution.
Schematic diagram is as follows:
Usage:
1. Obtain its corresponding record type name and field values of type picklist by the record ID.
2. Get field values of type picklist by Sobjecttype,record type name and field name.
Salesforce 0 Basic Learning (62) Get field values of type picklist in Sobject (with record type)