Get the type (data type) of a field in apex
Using Describe Method: Consideration Notes: Just a query – After Spring 20 Consideration Notes
Using Describe Method: Consideration Notes: Just a query – After Spring 20 Consideration Notes
Legacy Approach Previously, I used to use Apex Metadata Service (https://andyinthecloud.com/2013/10/27/introduction-to-calling-the-metadata-api-from-apex/); but it requires to import all code for even a small requirement. After, release of Tooling API, I find it lifesaver for such implementation. Below given approach is with help of Tooling api. Here is one Salesforce stackexchange question: https://salesforce.stackexchange.com/questions/162390/how-to-update-picklist-values-along-with-record-types-using-metadataservice New Approach First HTTP …
Update picklist value and add it in record type using apex Read More »