Category: Salesforce
How to login to salesforce using session id?
We may also access Salesforce without having to enter a username and password. We may log into Salesforce using the session ID. To log in to salesforce using session-id follow the following steps: Step 1: execute this piece of code
Inheritance in Apex
Inheritance is a feature of OOPS that allows us to inherit the properties or methods of a class. The base class acts as a parent, the class that is inheriting is called the child class. The child class has access
Decorators in Lightning Web Component
The Lightning Web Component has three decorators. @api @track @wire @api: If we want to pass any variable from Parent component to child component then we use @api decorator. To pass data to the child component, we need to define
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