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

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

Call Apex Method from Process to Send an Email

In this post, we will implement the functionality to call an Apex method from Process to send an Email from Apex. We can use Email Alert with Process to send an Email with only Configuration but there are some restrictions with Email Alerts like: Email Alerts have limited set of Recipients. If we use Email … 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

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

Named Credentials PER USER with OAuth 2.0

In this post, we will implement the Named Credentials with Per User Identity Type with OAuth 2.0. In the previous post, we implemented Named Credentials with OAuth2.0 using Named Principal Identity Type which you can check here. We will use the same code and configuration like Connected App and Auth. Provider implemented in the previous … Read more

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