Category: Salesforce
Salesforce | Iterate list in LWC
In LWC, we have two ways to display the list of records in our web component for:each: for:item=”currentItem”: This is used to access the current item. for:index=”index”: used for accessing the current item’s index. key={uniqueId}: used to assign a unique
Org Browser on VS Code in Salesforce
The Org Browser helps us to view all the available metadata types and their relating components in your default org. With the help of this feature, we can retrieve the metadata source easily without using a manifest file. The non-scratch
About Salesforce Queues
The collection of records without any owner are the Salesforce Queues. Only the users having permissions to the queue can examine every record of it and can claim ownership of any of them. Queues are basically used to assign/distribute/prioritize the
Salesforce | Decorators in LWC
There are three decorators in lightning web components. These decorators add functionality to property or function. @api: To expose a public property, decorate this with @api. Public properties are reactive which means changes to the value of a reactive property
Get records from a related object in Lightning Web Component
Problem: Suppose we have an object with a lookup field and we want to fetch a record with related object data in Lightning Web Component. Solution: We can get a record of the object directly in the LWC JS code.
Test Class In Salesforce
Test Class is an important part of the salesforce. Test Class is a class where we test our written working code that means the code is working right or not. In the Test Classes, we made the dummy data by
How to get Attachments from Salesforce using API in C#
Description: The code below shows how we can get Salesforce attachments from various objects and save them to a particular folder on a local disk. This is the complete code to get all attachments saved in all Contact objects in
How to Create and Add a Lightning Web Component into the Lightning App in your Salesforce Scratch org
After assuming that the user already has the VS Code and all the necessary packages like Salesforce CLI installed and has created a scratch Org into the system, let’s begin the process to create and add a lightning web component
Salesforce | Lightning Web component Lifecycle hooks
Lightning Web component Lifecycle Hooks: These are the callback methods that execute at a specific phase of the Lightning Web component’s lifecycle. There are various types of lifecycle hooks: constructor(): This method executes whenever the web component is initialized. The