Posts

Showing posts from December, 2022

Salesforce custom label in Apex, Visualforce, AURA, LWC

Salesforce custom labels can be used across different Salesforce technologies, including Apex, Visualforce, Aura components, and Lightning Web Components (LWC). Here's how you can use custom labels in each of these contexts: Apex : In Apex, you can access custom labels using the System.Label global variable. Custom labels are referenced by their developer name. String labelValue = System.Label.MyCustomLabel; Visualforce : In Visualforce pages, you can reference custom labels using the $Label global variable. <apex:outputText value="{!$Label.MyCustomLabel}" /> Aura Components: In Aura components, you can access custom labels using the $Label global value provider. <aura:component>     <aura:attribute name="labelValue" type="String" default="{!$Label.MyCustomLabel}" /> </aura:component> Lightning Web Components (LWC): In Lightning Web Components, you can import and reference custom labels using the @salesforce/label scop...

Skinny Tables in Salesforce

Skinny tables in Salesforce are custom tables that contain a subset of fields from a standard or custom object. They are designed to improve report and query performance by having a narrow width; in other words, they include fewer fields, which reduces the number of joins needed during a query execution on large objects. Skinny tables are handy when dealing with huge data volumes. Here are some critical points about skinny tables: Performance Improvement: Skinny tables can significantly speed up the performance of read-only operations, especially for complex queries and reports that do not need to access all fields of an object. Creation by Salesforce: Salesforce must enable skinny tables for your organization, and they are created, maintained, and managed by Salesforce upon your request. Supported Objects: Skinny tables are supported for Account, Contact, Opportunity, Lead, Case, and custom objects. Field Types : They can contain commonly used fields, such as checkboxes, dates, em...