Call Apex Method With Parameters in Lightning Web Component

Call Apex controller class with parameters in lwc

In Salesforce Apex classes, we can define class methods in two ways: one without parameters, where we simply want to fetch static data in the LWC component by calling the Apex method. The other method is with parameters, which are mapped with input fields in the Lightning web component and used in scenarios such as … Read more >>>

How to Write a Test Class For an Apex Trigger in Salesforce

Test Class For an Apex Trigger in Salesforce

As a Salesforce Developer, I needed to automate a process using an Apex Trigger. The trigger automatically creates a contact record whenever the sales team creates a new account for a customer. I wrote a test class to ensure the trigger works as expected and the trigger code is error-free. This test class also verifies … Read more >>>

Reactive Screen Component in Salesforce Flow

Enable reactive components in Salesforce flow

I recently created a Salesforce screen flow to calculate discounts on a product. Initially, the flow had two screens, one for entering the price and selecting the discount percentage, and another to display the discount amount and final price. While this worked, I wanted to show all four fields on a single screen. That’s when … Read more >>>

Mass Data Operations Using Salesforce Workbench

Insert records using Salesforce Workbench

In my Salesforce org, I frequently handle bulk data tasks such as importing new records, exporting existing data, updating multiple records, and deleting outdated entries. While there are multiple tools available, Salesforce Workbench is one of the simplest and most efficient browser-based tools for these operations. In this tutorial, I will explain how to use Workbench to import, … Read more >>>

addError() Method in Salesforce Apex

addError() Method in Salesforce Apex

We create validation rules in Salesforce to show errors on the record detail page. When a user enters incorrect data, the validation rule stops the save and displays an error message. But when working with Apex, sometimes validation rules are not enough. For example, we need to use Apex code to check complex conditions or … Read more >>>

Component Composition in Salesforce Lightning Web Components

Component Composition in Lightning Web Components

Recently, I designed a to-do list app in Lightning Web Components (LWC). The main list component contains multiple task components, each of which is a child component, and the parent list manages them together. At first, I considered using parent-to-child event communication to handle communication between components. However, I chose to use component composition instead … Read more >>>

String Class Methods in Salesforce Apex

String Class Methods in Salesforce Apex

When we work on strings in Apex, we often take inputs like names, emails, or messages from forms or records. For example, suppose you’re building a custom form where users enter their full name and email. Before saving this data to Salesforce, you want to ensure everything looks good. You need to check that the … Read more >>>

Introduction to Model Builder in Salesforce Agentforce

Configure Models in Salesforce Agentforce

As of now, we have seen Agent Builder, where we can build a new AI agent, and we also learned about Prompt Builder, where we can build various types of prompt templates. Now, AI agents in Agentforce can be customized to fulfill business needs, such as predicting customer actions or generating correct replies. In short, … Read more >>>

Invoke Flows From Prompt Template in Salesforce Agentforce

Invoke Flows From Prompt Template in Salesforce Agentforce

When the customer raises a query regarding the issue they are having with the product, and if they ask for a refund, the support agent needs to go through the terms and conditions of the product sold to give the customer a refund. So here, if we have the AI in Salesforce Agentforce, it understands … Read more >>>

Einstein Service Replies for Email in Salesforce Agentforce

Einstein Service Replies for Email in Salesforce Agentforce

First, let me explain a scenario to quickly understand how Einstein service replies for email in Salesforce Agentforce works. Then I will explain how we can achieve this in Salesforce. So, let’s say you are a support engineer and the customer has a question about the Wi-Fi router not working. Now, to get the proper … Read more >>>

live webinar

Build Your First Agentforce AI Agent in Salesforce

We will show demo on the complete process of building your first AI Agent in Salesforce using Agentforce. You’ll learn how agents work and how to connect your agent to Salesforce data to deliver intelligent business outcomes.

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.