When you are going through loop in a trigger you don’t have access to Record Type name like RecordType.Name, you can only access Id as RecordTypeId. Here’s the solution.
To get code coverage of a class or all classes you can use Tooling API on objects like:
- ApexCodeCoverage – contains coverage per class per test class
- ApexCodeCoverageAggregate – contains coverage per class for all test classes
- ApexOrgWideCoverage – contains coverage overall for all classes in the org
The best way is run queries using Developer Console
When we create an application that uses multiple languages, we use translation workbench is the purpose of the translation. Salesforce takes care of the translation user interface, so we always got the right language. But what about picklist values in Apex?