Tasks are things to do, a “point in time” (no duration), such a prepare meeting notes, set up conference room. They can be set in a future and they have dates and statuses. You can have assigned to yourself or that someone else has assigned to you. Events on the other hand…
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
Winter ’14 introduced the ability to receive name and type in Apex and SOQL queries. We can use CronJobDetail relationship to get the job’s name and type. Here are examples: