Sanket Kumar
As seen in:
Salesforce Diaries,
LinkedIn
Technical Specialist, @Coforge_Tech, Architect Group Leader, Hyderabad, Salesforce StackExchange, Lightning Champion Alumni, Blogger, 6x Salesforce Certified
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Sanket Kumar
Workshop on Building a Deterministic RAG Agent in Agentforce
Support volume at most B2B SaaS companies grows faster than the support team does. The usual answer is a chatbot, and the usual result is a chatbot that confidently invents an answer, refuses to hand off to a human, or fires a refund action nobody confirmed.
Copilot Instructions - AI Ruleset for Apex & LWC
A practical AI ruleset for Apex and LWC, copy-paste-ready guide to writing copilot instructions (AI Coding Rules for tools like Github Copilot, Cursor, Agentforce Vibes or Claude Code) — so every AI-generated Salesforce class, trigger, and LWC component meets production standards from the first prompt. Key Takeaways Copilot instructions (AI Coding Ruleset) live in .github/copilot-instructions.md and activate automatically on every prompt — zero setup required.
Copilot Skills Salesforce: Complete Setup Guide
Copilot skills Salesforce developers use turn GitHub Copilot into a Salesforce AI pair programming assistant that enforces Copilot Apex best practices on every single prompt. In other words, these AI skills for Salesforce — also called custom Copilot instructions — teach your IDE how to write bulkified Apex, secure LWC components, and optimized SOQL.
LLM Mistakes in Apex & LWC: Salesforce Code Generation Rules
LLM mistakes are very common but at the same time LLMs are transforming how we write Salesforce code. Vibe Coding Tools use these LLMs under the hood to generate code suggestions for APEX and LWC. But here’s what most developers don’t realize: LLMs are making mistakes and don’t understand Salesforce’s unique constraints—governor limits, LWC template restrictions, or Agentforce-specific patterns. They generate code that compiles in your IDE but breaks in production.
Platform State Managers in LWC
In our previous blog post, we explored the fundamentals of @lwc/state by building a loan application using atoms, computed values, and actions. We learned how to create a global singleton/factory store that provides reactive state manager across multiple components and pages. Today, we’ll delve into how the Platform State Manager can enhance this management further and share the data across the application.
Mastering State Management in LWC using @LWC/State
State management has been one of the biggest challenges in Lightning Web Components development. Passing data between components through properties and events works well for simple parent – child component relationships, but as applications grow more complex, managing LWC state across multiple components becomes increasingly difficult. Manage State Across LWC Components with State Managers (Beta) – Salesforce’s official solution for reactive state management in LWC.
How to use Custom Lightning Types in Agentforce Service Agents? - 2
We have setup Messaging Setting and Embedded Deployment Setting v2 in part 1 of this blog. Let us setup the remaining steps: In the Setup Quick Find, search for and select Routing Configurations. Click on New. Set field values as follows: Make sure you have a queue Click on Save. In the Setup Quick Find, search for and select Agentforce Agents. Click +New Agent. Select the Agentforce Service Agent template and click Next.
How to use Custom Lightning Types in Agentforce Service Agents? - 1
Custom Lightning types allow developers to customize the appearance and behavior of UI for Agentforce Employee agents in Lightning Experience. They use the LightningTypeBundle metadata component (available in API version 64.0+) to override the default user interface for agent actions.
#agentforce #miaw #fasthtml #python #node #lwr #salesforce #apiintegration #externalclients #chatui #htmx #customui #lightningcomponents #techinnovation | Sanket Kumar
LinkedIn respects your privacy LinkedIn and 3rd parties use essential and non-essential cookies to provide, secure, analyze and improve our Services, and to show you relevant ads (including professional and job ads) on and off LinkedIn. Learn more in our Cookie Policy. Select Accept to consent or Reject to decline non-essential cookies for this use. You can update your choices at any time in your settings.
Agentforce - MIAW Custom Client on Vercel
This project implements a custom web-based chat client for Salesforce Agentforce using the Salesforce Messaging for In-App and Web API v2. The application provides a real-time chat interface where users can interact with Salesforce AI agents. I have hosted it on Vercel. Find the complete code here: https://github.com/SalesforceDiariesBySanket/sample-agentforce-custom-client/tree/main This blog and project are inspired by the original work in charlesw-salesforce/sample-agentforce-custom-client.
Agentforce API: Generating Case Summaries with Apex Queueable
In this blog, we’ll explore how to automatically generate a case summary when a Salesforce Case status transitions to “Escalated”, using the Agentforce Models AI API. This time, instead of posting to Chatter, we’ll directly update the Case Description field with a concise, AI-crafted summary. Using Apex Queueable jobs and OpenAI-powered prompts, we bring intelligence into your support workflow—reducing manual input and improving clarity across escalated cases.
Agentforce Models AI API: Posting Chatter with Apex
In this article, we’ll explore how to use the Agentforce Models AI API to automatically generate and post Chatter messages when a Salesforce Case status changes. Leveraging Apex @future methods and OpenAI-powered prompts, we offload the writing to AI—so agents can focus on solving problems, not posting updates. Let’s walk through a practical and scalable use case: Automatically generating Chatter posts when a Case transitions to “Working” using the Agentforce AI Models API.
Agentforce Models AI API in Batch Class
Agentforce Models AI API is opening exciting doors for developers by integrating AI natively into Apex. A powerful pattern emerging (AI + Apex) by using Database.Batchable to orchestrate generative model calls at scale. Let’s break it down with a practical use case: generating welcome emails for new developers using Salesforce AI Models API. The approach involves implementing a Database.Batchable<SObject> class that iterates over Contact records.
Gemini AI API with LWC : File Analysis
(Agentforce Models API not required, The API is called directly through the JS, For better security control, Please try to route the call through a proxy server e.g. node js with render or heroku) You can check a working example here about using Agentforce Models API: Agentforce Models API & LWC: File Analysis ⚠️ Caution: While the Agentforce Models API offers built-in security and governance, using a direct public LLM endpoint like Gemini-2.5-flash introduces potential security...
Agentforce Models API & LWC: Video Analysis
✅ Recommended: This approach uses the Agentforce Models API, which offers built-in security, governance, and compliance features when integrating LLM capabilities directly into Salesforce. For more info: https://developer.salesforce.com/docs/einstein/genai/guide/supported-models.html In this blog, we’ll explore how to record video in Salesforce, then analyze it using Salesforce-managed AI models via the Agentforce Models API.
Agentforce Models API & LWC: File Analysis
In this blog, we’ll walk through how to leverage the LLM model Gemini 2.5 Flash using Agentforce LLM Models API to analyze files uploaded by users in a Lightning Web Component (LWC). This approach allows developers to harness the power of large language models (LLMs) within Salesforce to extract insights or generate summaries directly from uploaded documents.
AgentForce Exchange - 3: AI Contract Reader
Customers often struggle to understand the contracts they’re presented with. Legal language, hidden terms, and confusing renewal clauses make it difficult for non-legal users to fully grasp what they’re agreeing to. This can result in missed obligations or customer dissatisfaction. Here comes the AI contract reader.
AgentForce Exchange - 2: Natural Language Querying of Salesforce Data
Non-technical users often find themselves blocked by SOQL’s syntax for querying data or by having to remember which list view filters to use. What if they could just type in natural language: “Show me all closed deals from last quarter” and get exactly what they need?
Agentforce Exchange - 1 : Generate Email with LWC and Model AI API
Generate email drafts instantly using LWC and Model AI, helping Sales Reps save time, reduce repetitive writing, and ensure consistent, personalized communication across the sales process. Reduces repetitive email drafting. Uses AI to generate tailored emails based on prompts. Stores email drafts in a custom object. Adds an approval layer for quality assurance. Makes approved emails reusable by others. Restricts usage and visibility through permission sets and record-level access.
Custom Kanban View for Salesforce LWC
The Kanban view is a staple for any modern CRM user interface — it’s visual, intuitive, and great for tracking progress. But what if the out-of-the-box Salesforce Kanban isn’t flexible enough for your unique use case? That’s where Custom Kanban View in Lightning Web Components (LWC) comes into play.
Cursor with LWC
Cursor recently has been introduced, a powerful feature still in Beta. This new capability allows developers to efficiently handle large query result sets without loading the entire dataset into memory. With cursors, you can traverse query results in smaller parts. It offers the flexibility to navigate forward and backward through the results—a significant advantage for managing large-scale data.
Dependency Injection & multi step in LWC
Dependency injection is used to make a class independent of its dependencies or to create a loosely coupled program. It is useful for improving the reusability of code. Creating a multi step in LWC with dependency injection using custom metadata involves designing a component where each step can be configured through metadata, results in more flexible and dynamic multi step process.
Notify LWC when Queueable Job finishes
Notify LWC when Queueable job finishes becomes important in many use cases. However, when calling this with Lightning Web Components, a common challenge is how to notify LWC when the job finishes. This blog will walk you through the process of setting up a notification system for LWCs when a queueable job completes, ensuring a seamless user experience using platform events. The overall solution involves the following components: Queueable Apex Class: Executes the background process.
Create Jira Issues from LWC in Salesforce
Create Jira Issues from LWC in Salesforce can help business in lot more ways. Jira Integration save lot of money and time. By creating Jira issues directly from Salesforce, teams can enhance their productivity and maintain seamless communication between their CRM and project management tools. Whether you are addressing bugs, managing projects, or handling customer service requests, this integration offers a unified solution to boost operational efficiency and team coordination.
Get recordId in LWC Quick Action
recordId in LWC Quick action are not directly availabe in connected callback. Generally, We need the record id on load of the lightning page to do something. To overcome this challenge, these two alternative would be helpful:- Using Getter and Setter Using CurrentPageReference from navigation module Timing of recordId: In a Quick Action, the recordId is usually populated after the connectedCallback is invoked.
URL Hack - Open button and action from LWC
open button and action from lwc :- Salesforce allows Lightning Web Component and Aura Components to be directly used as button and actions on record page. Sometimes, We need to open custom button and actions invoked from LWC. As a solution, We can rely on URL hack invoke button and action from LWC. In Aura, A lightning:quickActionAPI component allows you to access methods for programmatically controlling quick actions on record pages. This component is supported in Lightning Experience only.
Visual Picker in LWC - Dynamic and Reusable
A Reusable visual picker can be either radio buttons, checkboxes, or links that are visually enhanced. We have two types of Dyanmic Visual Picker, they are:- Coverable and Non-Coverable. Content comes in three sizes – small, medium (default) or large. The default uses radio buttons, allowing the user to pick only one. To allow multiple selections, follow the checkbox examples below. Business Use-Case – Reusable Visual Picker Business wants to have ability to select options visually.
LWC EXCHANGE - SCENARIO 20
Custom component Refresh This scenario has been designed for developer who possess advanced skills in Lightning Web Component. There is a custom component added on the record page. The component displays the Owner Details of the current record. Whenever the users changes the owner of the record using standard detail page. Custom component should get auto refreshed and show the updated owner. Are you stuck while working on this requirement? Do you want to get review of your solution?
LWC EXCHANGE - SCENARIO 18
Salesforce Timezone in LWC This scenario has been designed for developer who possess advanced skills in Lightning Web Component. Your organization has user from works in various timezone Your are building a custom datatable in lwc to show accounts with their created date time You need show the created date time in table in logged in user timezone Are you stuck while working on this requirement? Do you want to get review of your solution?
LWC EXCHANGE - SCENARIO 17
This scenario has been designed for developer who possess advanced skills in Lightning Web Component.
LWC EXCHANGE - SCENARIO 16
This scenario has been designed for developer who possess advanced skills in Lightning Web Component.
Pass sObjects and Wrapper to Flow from LWC
Pass sObjects and Wrapper to Flow from LWC which gives you ability to work with complex requirements. LWC can pass data to screen flows very easily. When it comes to pass data of type sObjects, List of sObject, Apex defined types like wrapper and list of wrapper to Flow, we need to configure the xml file of Lightning Web Component accordingly. We will create a LWC which will be called inside a lightning screen flow.
LWC EXCHANGE - SCENARIO 13
This scenario has been designed for developer who possess Intermediate skills in Lightning Web Component.
Pass Error Exception Message from Flow to LWC
When a lightning flow is launched from LWC and throws some exception, it should be handled. Handling the exception in screen flows can be done within the screen flow or you can pass the error message to LWC from screen flow. We are going to learn how we can pass the error message from Flow to LWC when error occurs. Requirement – Pass Error Message to LWC We will create a LWC which invokes the lightning flow.
Generic Tree Grid Hierarchy LWC On Same sObject
Tree grid Hierarchy for records can improve user experience and gives more insight on parent child hierarchy at one place. Salesforce does give Account Hierarchy feature out of the box, but what if you want the similar functionality for Role Hierarchy or Case Hierarchy or any custom object hierarchy? Well, Now you can use this generic Lightning Web Component which allows you to have hierarchy view on single sObject records.
Force Refresh View in LWC
Refresh View was must needed feature missing in Lightning Web Component. When a change is invoked from custom LWC, user had to refresh the page manually by reloading it. Good news is refreshview module is now available to use directly in LWC. The new lightning/refresh module and RefreshView API provide a standard way to refresh component data in Lightning web components (LWC) and Aura components.
LWC EXCHANGE - SCENARIO 10
Use Custom Labels in LWC Problem Statement Create 10 different custom labels in Salesforce Create a Lightning Web Component Add a label.js file in it import all the 10 custom labels in it and export it so that it can be used at other places import the label.js file in main js file of the lightning web component display as list of label values in html file Do you need help? Are you stuck while working on this requirement? Do you want to get review of your solution?
LWC EXCHANGE - SCENARIO 9
Create Parent and Child record along with file in single LWC Screen Problem Statement Create a Lightning Web Component Create form to create account, contact related to same account and upload a file from single screen Add below input fields:- Account Name Contact First Name Contact Last Name Contact Email Account WebSite Contact phone Number Add a file input so that user can upload the file from local system Add buttons in footer section – Save Save and new Cancel When clicked on Save, It...
Generic Lookup In LWC Using Screen Flow
As Salesforce platform is moving towards low code, why don’t we as a developer try to think towards it and provide solutions that can leverage the existing low code features like screen flow. Screen flow has a lookup component which allows users to select a record. We already have custom reusable lookup component code published earlier. In this blog, We will show the Lightning Web Component’s capability to use screen flow lookup and get the selected lookup value dynamically.
LWC EXCHANGE - SCENARIO 8
Make an Public API callout In Lightning Web Component and Display the results in Lightning Card Problem Statement Create a Lightning Web Component named publicApiCallout Provide a custom lightning button to invoke the API Bored is a free API to find something to do by getting suggestions for random activities.
Searchable Dual Picklist
Multi Select Dual Picklist are available as a base component in component library of the Lightning Web Component. When available picklist values are more in numbers, users might find very hard to search the right picklist value. We are going to deliver Searchable Dual Picklist in this blog. We will use the base component lightning-dual-listbox along with our own serach boxes attached to it. Adding serach option in dual picklist component improves the user experience.
A retrospective study showing a high rate of seropositivity against SARS-CoV-2 in wild felines in India
Archives of Virology, Mar 2023 This is a preview of a remote PDF: https://link.springer.com/content/pdf/10.1007/s00705-023-05735-4.pdf Borkakoti, Richa, Karikalan, M, Nehul, Sanket Kumar, Jogi, Harsh Rajeshbhai, Sharma, Kirtika, Nautiyal, Sushmita, Mishra, Ragini, Mahajan, Sonalika, Biswas, Sanchay Kumar, Nandi, Sukdeb, Chander, Vishal, Pawde, Abhijit, Saikumar, G, Singh, Karam Pal, Sharma, Gaurav Kumar. , Archives of Virology, 2023, pp. 1-5, Volume 168, Issue 4, DOI: 10.1007/s00705-023-05735-4
Change Data Capture - Automate With LWC
Change Data Capture (CDC) Receive near-real-time changes of Salesforce records, and synchronize corresponding records in an external data store. Change Data Capture publishes change events, which represent changes to Salesforce records. Changes include creation of a new record, updates to an existing record, deletion of a record, and undeletion of a record. We can subscribe this in LWC using Emp Api.
iSoftBet analyzes dinosaurs' age with Tyrant King Megaways Slot
One of the most popular brands in digital content development and prominent aggregator iSoftBet declares another addition to its brilliant portfolio. Tyrant King Megaways™, with the colossal creature as the leading character of the game, is the premiering name in the office’s latest Apex Predator series. Prepared with boosting multipliers and cascading victories, this competition is all about action.
Bitcoin drops after China extend the crypto crackdown
Chinese government agents, including the securities regulator of the country and the People’s Bank of China (PBOC), noted in an announcement on Friday that all crypto-related industry movements are illicit and pledged to clamp down on illegal movements involving online currencies. The agents stated that overseas crypto sales would be blocked from assisting Chinese citizens through the internet. Bitcoin (XBT) drops about 5% on the announcement. Ethereum, another prominent cryptocurrency, dropped 9%.
Revolutionary cryptocurrency, Wojak, to kick off from October 1
While some individuals believe cryptocurrencies are a huge fraud, the outcomes reveal cryptocurrencies are a safe market in a new perspective. Many projects in the cryptocurrency market are organized in a particular way that they have a particular development and program strategy that enables, in addition to bringing revenue in the market. One such program is Project Wojak.
The US is going to sanction crypto firms involved in facilitating ransomware payments
As per reports, the US government is set to declare new regulations, including sanctions, to prevent cryptocurrency companies from getting involved in facilitating and laundering ransomware expenses. People aware of the matter notified the Wall Street Journal that the Treasury could start the new rules as early as this week. As per reports, they’ll pick out cryptocurrency deals and dealers who either unwittingly or knowingly help cybercrime deals.
Greentube makes another journey to ancient Egypt in cash connection - Book of Ra
After completing the month of August with Star Supreme, Greentube is returned to enhance its courageous slot sector with a fresh attack into ancient Egypt. Put on some gear of explorer and be prepared to ascend the rope as you climb the graceful temples and archaic monuments in Cash Connection – Book of Ra, a fresh name in the studio’s fast-rising portfolio, fit for venturous and intrepid gamers.
BTC Drops Below $40,000 Amid Regulatory Drumbeat
The biggest cryptocurrency was little changed in Hong Kong at nearly $41,000 as of 8:34 a.m. on Wednesday, having first slid as much as 3.2%. The execution of tokens including Litecoin, Solana, and Ether was assorted over the past 24 hours. Suspicions of contagion from the deficit problem at China Evergrande Group and odds that the forthcoming Federal Reserve conference will give a sign of scaling back in asset investments later this year are among the limitations for investors.
Fantasma Games introduces Bounty Showdown throughout the network
Fantasma Games is one of the most popular companies of casino content and has recently declared that its Bounty Showdown game is accessible network-wide after the latest launch time via Kindred Group. Thanks to the international beginning of the game, wagering operators around the globe will be apt to provide this stunning, Western-themed space to their gamers.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Sanket
Contact Sanket, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack