Blogs

  • Static Resource Test Class Data

    By utilizing the Test.loadData method, you can effortlessly input data into your test methods, eliminating the need for extensive code. Just follow these steps: For instance, if you’re dealing with Account records and the static resource is named myResource, make the following call: The Test.loadData method provides a list of sObjects corresponding to each inserted…

    Read more…

  • Toggle Class Dynamically in Lightning Web Components (LWC)

    In this straightforward situation, the objective is to toggle the visibility of a div, but the conventional <template if:true> tag is not applicable. Consider a scenario where a loop is in use. We will explore two alternative methods for achieving dynamic show/hide functionality in LWC without relying on the <template if:true> approach. Simplified Method for…

    Read more…

  • Create callable actions that function across various objects.

    Following the Spring 20 update, it is now possible to craft reusable Apex actions employing the generic sObject and List<sObject> data types. Instead of creating a distinct action for each object, you can now construct a singular action capable of functioning across multiple objects. Developers have the flexibility to design a filter or sort action…

    Read more…