Upload Files using LWC (Lightning Web Components)

In this post, we will implement the functionality to upload files using LWC (Lightning Web Components) using lightning-file-upload. Let’s hop into the implementation. Implementation In this implementation, we will display Case Record with the Upload Files button. Once the files are uploaded, we will display the files in the same component. Create component fileUpload. Use … 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

Current User Id in LWC, Aura, Apex, and Visualforce

This is a simple but very useful post. This post will show how can we get the Current User Id in LWC (Lightning Web Component), Aura, Apex, and Visualforce. Let’s just get into the implementation. Current User Id in LWC (Lightning Web Component) To get the current User Id in LWC, we need to import … Read more

Address Lookup in Lightning (LWC, Aura) using Google API

In this post, we will implement the Address Lookup in Lightning (LWC, Aura) using Google Maps Places API in Lightning using Aura and Lightning Web Components. This is used to Autocomplete address in Lightning. When we start typing an address in the lookup field, a dropdown menu displays matching addresses returned by the Google Maps … Read more

Custom Permission in LWC (Lightning Web Component)

In this post, we will access the Custom Permission in LWC (Lightning Web Component) to check if the User has access to perform a particular action. Initially, we had to do this by calling an Apex method to check if the User has access to Custom Permission. In this post, we will use the Latest … Read more

Navigate to LWC (Lightning Web Component)

In this post, we will implement the functionality to navigate to (LWC) Lightning Web Component after clicking a button and how to handle other navigation in LWC. In an earlier post, we implemented the Navigation Service in LWC to navigate to Record Pages, Web Pages, Lightning Components, List Views, and Objects. There is not any standard method to implement the … Read more

Share Styles (CSS) between LWC

In this post, we will implement the functionality to Share Styles (CSS) between (LWC) Lightning Web Components. Usually, we have to create a CSS file in the Lightning Web Component bundle and hence each Lightning Web Component has its own CSS file. If the CSS file can be shared among the components, we can put … Read more

Navigation Service in LWC (Lightning Web Component)

In this post, we will implement Navigation Service in LWC to navigate to different page types. We need to use the lightning/navigation module to navigate to different pages like Record Pages, Web Pages, Lightning Components, List Views, and Objects. The Navigation Service in Lightning Web Components uses a PageReference JavaScript object which describes the Page … Read more

Lightning Message Service (LMS) – Future of Communication

Lightning Message Service (LMS) is the first Salesforce feature that enables the communication between Visualforce Page, Aura Component, and LWC (Lightning Web Component) anywhere on the Lightning Page. It provides a simple API to publish messages throughout Lightning Experience and subscribe to messages that originated from anywhere within Lightning Experience. The only requirement is that … Read more

Lightning Web Components (LWC) in Utility Bar

In this post, we will implement the functionality of adding Lightning Web Components (LWC) in the Utility Bar. Utility Bar is displayed at the bottom of the page in Lightning Application and we can access it on any page. Let’s get into the implementation. Implementation In this implementation, we are creating a Form using Lightning … Read more