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…
Month: May 2015
Salesforce – How to access Record Type name in a trigger?
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.
Salesforce – How can I get the code coverage of a class / org?
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
Salesforce – How to list all scheduled jobs in Apex?
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: