LWC Wire and Imperative

The purpose of this article is to demonstrate how to make lightning web component calls to the apex: method. You can do this in two ways:

Using @wire to wire a property or Using @wire to wire a function.

Using @wire to wire a property

Lightning web components can call apex methods from Apex classes into the client-side classes. After importing the apex class method we can call the apex methods as functions into the component by calling wire service. The Apex Method should be started with @AuraEnabled.

public class accountclass {
@AuraEnabled (cacheable=true)
public static List<account> accountclass() {…


salesforce Triggers

A Salesforce trigger is an apex script that runs before or after a data manipulation language (DML) event occurs. Adding new records to your sales force, deleting old records from a sales force database, updating records within your sales force, or generally manipulating data through the system are examples of data manipulation language events.

Apex triggers enable you to perform tasks you can’t complete using the point-and-click user interface in Salesforce.

Apex triggers are designed to allow you to run custom actions either before or after a data manipulation event has taken place. …


Custom Setting

Use custom settings to create and manage custom data at the organization, profile, and user levels. Custom settings data is stored in the application cache. This means you can access it efficiently, without the cost of repeated queries. Custom settings data can be used by formula fields, Visualforce, Apex, and the Web Services API.

The concept of custom settings is similar to custom objects. We have to create our own custom settings similar to creating custom objects. Custom settings allow application developers to create custom sets of data, as well as associate custom data for the organization.

Application cache allows…


Salesforce Compound Fields

Compound fields group together multiple elements of primitive data types, such as numbers or strings, to represent complex data types, such as a location or an address.

Address compound fields are accessible when API version v.30 and later, If you’re making an attempt to accessing the address field in your trigger or apex code check that the API version isn’t below v.30.

The list of available Address fields are,

How to access each field in a compound field

public class mytest {public string vardata='ranbir';
public void hello(){
for(user userObjchamp …


Photo by Brett Jordan from Pexels

People always believe in freedom and that is absolutely great but I personally feel we should always bound ourselves in some kind of Rule. These rules draw a line of protocol that offers success in your great journey. There are some tips that help to save time and create a protocol. Procrastination is one of the main barriers blocking you from getting up, making the right decisions and living the dream life you’ve thought of. Sometimes all our opportunities seem to be at our fingertips, but we can’t seem to reach them. …


Salesforce Live Web Chat

Salesforce live webchat Help customer interacts with the support team. It also improves the support experience for customers. It is very easy to set up the live chat in salesforce. Connect with your customers wherever they are with live, web-based chat.

Many customers already use the live chat in their day-to-day interactions, which makes it an incredibly useful support tool for businesses. Plus, it gives customers that proactive, personalized TLC right where they need it: while they’re browsing through a website. Being there can make the difference between a happy customer who keeps coming back, and one who… well… doesn’t.


Next Best Action

Salesforce Next Best Action is one of the best tools in the service cloud. It Displays the right recommendation to the right record at right time. It allows the team or user to perform the best action which is required based on some business logic. It is very useful and assists your support team to take action based on the record filter.

we have to follow the four steps to add the Next Business Action in our Salesforce org.


Salesforce Entitlement

Entitlement management provides the best solution for customer support. Entitlement offers the correct support to your customer. It also helps us to enforce the service level agreement with the customer.

Service level agreement (SLA) is the agreement between you and the customer.SLA can manage through Entitlement, service contract, Milestone.

Some Basic examples of Entitlement

Having Entitlements configured in Salesforce gives you two important things:


Dynamic forms are one of the game-changer for the lightning platform. Now we can declaratively customize the section and the fields of the detailed section or create your customized section without any coding pattern and no need to create the multiple page layout.

One of the biggest advantages of the dynamic form is filter option on a section (will cover below). Even we can also filter the specific fields based on permission, record, user. The filter works on WHEN, WHOM and ON.

Dynamic Forms benefits you in these ways:

Ranbir Kumar Das

I M Believer, Helper, Chaser, Thinker, Rich, Explorer, Prayer, Boss, Freedom, Fearless, Investor, Faith, Creator, trillionaire, CSM, Salesforce certified

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store