Send Custom Notification using Apex in Salesforce

In this post, we will implement the functionality to Send Custom Notification using Apex in Salesforce. This feature is introduced recently in the Winter ’21 release. We can also send the Custom Notification using Process Builder in Salesforce. You can check the complete implementation for that here. Implementation In this implementation, we will Send Custom … 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

Include JQuery in LWC (Lightning Web Component)

In this post, we will implement the functionality to include JQuery in LWC (Lightning Web Component). We can use Custom CSS and SLDS in Lightning Web Component, but sometimes it is useful to include JQuery in LWC to implement the modern UI and using less code. There are so many methods implemented in the JQuery … 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

Apex Trigger Best Practices (All-in-One)

In this post, I will explain all the Salesforce Apex Trigger Best Practices that everyone must follow before writing an Apex Trigger. Apex Code can be executed from the Triggers. And Triggers are executed before or after the Salesforce Records are created, updated, deleted, or undeleted. Hence, it is absolutely necessary to follow the Best … Read more

Delete Record in LWC using deleteRecord of uiRecordApi

In this post, we will implement the functionality to delete records in LWC using deleteRecord of uiRecordApi module. Let’s hop into the implementation. Implementation In this implementation, we will display a list of Opportunities with the Delete button for each record. Once the Delete button is pressed, the respective Opportunity will be deleted from Salesforce. … Read more

Update Record in LWC using updateRecord of uiRecordApi

In this post, we will implement the functionality to update records in LWC using updateRecord method from uiRecordApi module. Let’s just hop into the implementation. Implementation In this post, we will fetch the details of the Case record and display it using lightning-record-view-form. Then, we will have a Text box and a button to update … Read more

Loop through List in LWC and Javascript

In this post, we will implement different ways to loop through List in LWC and Javascript. This is extremely useful especially in Javascript when you need to loop through the list to perform some operation. You can choose from multiple ways to loop through List. So let’s just hop into the implementation. Implementation In this … Read more

Get Current Location in LWC (Lightning Web Component)

In this implementation, we will implement the functionality to get the current location in LWC (Lightning Web Component) using getCurrentPosition()HTML Geolocation API. This will also help you to solve one of the problem statement in the Lightning Web Components Specialist Super-Badge. Let’s get into the implementation. Implementation In this implementation, we will create a button … Read more