Preview Files in Lightning Aura Components

In this post, we will implement the functionality to preview files in Lightning Aura Component using lightning:fileCard and custom implementation. Let’s get into the implementation. Implementation In this implementation, we will create a Lightning Aura Component to display and preview images. Create a Lightning Aura Component and lightning:fileCard which accepts two arguments: fileId: Id of … Read more

Access Fields of an Object Dynamically in Lightning

In this post, we will implement the functionality to access Fields of an Object dynamically in Lightning Component. Ideally, we can access the Field of an Object using {!v.objectName.fieldName}. For example, to access the name of Account, we can use {!v.account.Name}. But what if we don’t know the name of the Field we want to … Read more

Retrieve Component using Package.xml (All-in-One)

In this post, we will see how can we retrieve components using the Package.xml file from Salesforce Org. There are different types of components in Salesforce and it is difficult to remember the API names and Syntax of all the components required to retrieve using Package.xml. Hence, this post will help you to retrieve any … Read more

Current Record ID in LWC, Aura, and Quick Action

In this post, we will implement the functionality to get the current Record ID in LWC (Lightning Web Component), Lightning Aura Component, and Lightning Quick Action. Let’s hop into the implementation. Implementation In this implementation, we will create a Lightning Web Component and Aura Component to get the Current Record ID in LWC and Aura … Read more

Dynamic Forms in Lightning using Lightning App Builder

In this post, we will implement the latest feature provided as part of the Winter ’21 release that is Salesforce Dynamic Forms in Lightning using Lightning App Builder. Using Dynamic forms in Lightning, we can drag and drop the fields in Lightning App Builder to arrange them as per the need rather than updating the … Read more

Call Method of Child from Parent – Reusable Component in Lightning

In this post, we will implement the functionality to call a method of Child component from Parent and how to make a Reusable Component in Lightning. To call a method of Child Component from Parent, we need to make use of <aura:method>. <aura:method> executes in a Synchronous manner and hence it is easy to return … Read more

Share JavaScript Code Between LWC and Aura

In this post, we will implement the functionality to share JavaScript code between LWC and Aura Component. Many projects use the Aura Component and LWC in the same project. And if there is some common JavaScript code that is used in both types of components, we can keep the common JavaScript Code in a single … Read more

Access LWC without Login using Lightning Out

In an earlier post, we checked how to access Visualforce Page without login which you can check here. In this post, we will implement the functionality to access LWC without a login on a Public Website using Lightning Out. Let’s just get into the implementation. Implementation To host lightning components on other web servers and … Read more

Platform Events in Lightning (Emp API)

We can use Platform Events in Lightning (Emp API) to connect business processes in Salesforce and external sources through the exchange of real-time event data.  Platform events are secure and scalable. We can create a Platform Event and add custom fields as per the business needs. Platform event messages are published to the Event Bus. … Read more

Custom Label in LWC, Aura, Apex, and Visualforce

Custom Labels are used to create multilingual applications by automatically displaying information or any text in a user’s native language. In this post, we will create a Custom Label and then access it in Lightning Web Component (LWC), Lightning Aura Component, Visualforce Page and Apex Class. Let’s get into the implementation. To create a Custom … Read more