Named Credentials using OAuth 2.0

In the previous post, we implemented Named Credentials using Anonymous and Password Authentication protocol and explained the basics of Named Credentials. You can check it here. In this post, we will implement Named Credentials using the OAuth 2.0 protocol with Named Principal Identity Type to get the data from External applications. So let’s just hop … Read more

Named Credentials in Salesforce with Example

Named Credentials in Salesforce is used to specify the endpoint and its required authentication parameters in a single definition. By using Named Credentials, we don’t have to specify callout endpoints in Remote Site Settings. And we don’t even have to handle Authentication in code. Named Credentials will take care of all. It is more secure … 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

Add Image in Visualforce Email Template

In this post, we will implement the functionality to Add Image in Visualforce Email Template. Email template can contain the images in the body of email template like Logo of the company. We will add the image dynamically such that there will be no post deployment steps for higher environments. Let’s get into the implementation. … 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