Another Salesforce blog!!!

Salesforce, Apex

How to generate Salesforce report using APEX

Favorite

Measure lightning page load times

When using the Lightning Experience, there are some best practices to consider when measuring the time it takes for individual lightning pages to load. There are two ways that you can enable a load time counter directly in the Lightning interface: This setting adds a counter in the top right corner of the Lightning interface […]

Calling API endpoint

Apex class: Javascript code: HTML code: Favorite

Queueable Apex

What is Queueable Apex: Asynchronous operation that combined the best features of future calls with the best features of batch Apex. Queueable Apex is as fast, or faster than regular future calls. And it’s chainable, with certain restrictions. And it’s much easier to use than batch Apex. Queueable Apex jobs have other advantages. They have […]

Send Reports via Email using Apex

Apex code snippet: Favorite

Installing gh using Brew

Install command: GitHub command-line tool https://github.com/cli/cli Terminal: Open up Terminal and run: gh auth login Favorite

Apex – MAP

Adding a key/value to a Map in a standard way: Map intMap = new Map();intMap.put(‘AA’, 100);intMap.put(‘BB’, 200);intMap.put(‘CC’, 300);for (Integer s: intMap.Values()) {system.debug(s);} Map intMap = new Map{‘A’ => 0, ‘b’ => 1,’C’ => 2}; for (Integer s: intMap.Values()) {system.debug(s);} Favorite

Before vs. After Triggers

Before vs. After Triggers It is generally better to use before triggers where possible. The biggest advantage of before triggers is that any field changes you make to an object do not require a SOQL or DML operation – so they are easier on limits. In addition, during a before operation, you have access to […]

Lifecycle Hooks in Mounting Phase in LWC – Parent/Child

Life Cycle Parent Component: Life Cycle Child Component: Favorite

Dynamic CSS in LWC

Favorite

Previous Posts