Category: Salesforce
Custom font in Visualforce Page
We can use custom fonts in the Visualforce page using Salesforce Static Resources. Following are the steps to use custom fonts: In Setup, use the Quick Find box to find Static Resources and create new a resource with ZIP of
Bulk State Transition
The Bulk State Design pattern is the general pattern that executes the bulk of the actions in Apex based on the change of state of one or more records. Bulk transitions increase the code reusability by allowing only records that
What is Schema in Salesforce?
Schema is a namespace provided by salesforce which provides schema metadata information using different methods and classes. ChildRelationship Class This class contains methods to access the child relationship as well as the child sObject for a parent sObject. DataCategory Class
Create Component In LWC and display in salesforce page
Following are the steps to create component in LWC and display in salesforce page: Create Default Search org from VS code. Authorize an Org. Create Lightning web component. After creating the lightning web component it will show the component under
Call Apex Function inside an LWC Function
While creating the LWC component whenever you want to call an apex function you use the @wire function in it and pass parameter in it which has @track or @api decorator attached with it like @track id; or @api id;
Salesforce DX – Spinning Up a new scratch org
Steps to create scratch org in Salesforce DX Open the directory folder where the Salesforce DX code is present. Create scratch org with the help of a command palette or Terminal by authorizing dev hub. To Authorize dev hub Press
How to use Custom Labels in Lightning Web Components
Custom Labels are text values that can be translated into any language that salesforce supports. We can use custom labels to represent help text or error messages to the users in their native language. Custom labels can be fetched from
Using Developer Console in Salesforce
Executing Apex code in the developer console Login to Salesforce and switch to classic and click Developer Console Click to debug -> and click “Open Execute Anonymous Window” or Ctrl/E Write code in the window and execute as following After
Salesforce | Lightning Navigations in LWC
Lightning Navigations are used to generate a URL or navigate to a page reference. With lightning navigation, we can navigate to Pages, Records, Lists, Webpages, Custom tabs, Reports, etc. There are the steps to use the navigation in LWC: Step