Today5 stories · 1 brief

The Daily Org

Spring '27Sandboxes 6 Feb 2027

Curated by Abhinav (opens in a new tab)

Vol. I · No. 58The independent daily for Salesforce admins, developers and architects5 stories · 1 brief

Must-readAgentforce and AI

Choosing between HXL widgets and assistant rendering for AI tool results (opens in a new tab)

You will learn when to let an AI assistant render a Salesforce tool result and when to ship a Headless Experience Layer widget, and what a widget can and cannot show.

Why read this

The piece gives a worked approval-request example and the wiring needed for each assistant.

Let the assistant render

  • Answers exploratory questions
  • Layout can vary each run
  • Charts drawn from tool results
  • No build beyond the tool

Ship an HXL widget

  • Fixed field order and grouping
  • Buttons send decisions back
  • Built once for all assistants
  • No chart component in beta
Assistant rendering suits open questions; widgets suit fixed layouts

The article contrasts two ways of presenting a Salesforce action’s result to users of AI assistants. By default, the assistant reads a JSON tool result from an MCP server and decides for itself what to emphasize and how to lay it out. The Headless Experience Layer, part of the Headless Toolkit, lets you define an interface once as a structured widget that assistants such as Claude, ChatGPT and Slackbot render natively. HXL is currently in beta across Agentforce employee agents in Lightning Experience, ChatGPT, Claude and Slackbot.

The authors set out a decision rule. Where users work on a Lightning Record Page or in a console app and do not ask an assistant for results, skip HXL and use standard page components, or a Lightning Web Component when those fall short. Where users ask for results in an assistant, let the assistant render the answer for exploratory questions, but ship a widget when the placement of fields, their grouping, labels and buttons matter. Their example is a sales manager approving discounts in Slackbot: a widget keeps the requested discount beside the policy limit with Approve and Reject buttons, whereas an assistant might reorder or omit the policy limit from one reply to the next.

On cost, the article argues that one widget replaces separate builds for each surface, such as a Lightning Web Component for Agentforce and a Block Kit message for Slack, so the investment pays off as the number of assistants grows. A widget is metadata-defined, composed in JSON from 22 HXL components such as rows, tables, badges, links, callouts and buttons, and is previewed with mock data in the HXL Playground. It connects to data through custom Lightning types that map an action’s output fields to widget attributes. For Agentforce you select the type as the action’s output rendering. For Slackbot, ChatGPT and Claude you attach the widget to a tool on a custom MCP server, which currently works only for invocable actions.

The limits matter as much as the method. The beta widget set has no chart component, so charts should be left to the assistant, or drawn with a Lightning Web Component when the user works in Lightning Experience. Interactive modelling, such as adjusting a discount and watching margin change, belongs on the record page rather than in a chat.

Read the original at Salesforce Architects (opens in a new tab)

Worth reading?

RecommendedDevOps

sfDesk, a free desktop app that puts the Salesforce CLI behind buttons (opens in a new tab)

You will learn what sfDesk offers for org connections, querying, Apex, deployments, and org health, and how it keeps credentials and commands safe.

Why read this

It is useful if you want a GUI over the sf CLI.

The author built sfDesk, a desktop app for macOS and Windows that wraps the Salesforce CLI in buttons instead of commands. It is free, open source under Apache 2.0, and released as version 0.1.0. It shows every org the computer is signed in to, grouped by type, and provides a page for everyday jobs such as querying data, running Apex, reading debug logs, running tests, deploying, building packages and checking org health.

The app follows three rules. Every action is a labelled button, with an option to display the underlying sf command. Queries only read, and production orgs ask for confirmation before Apex runs, record edits and deploys. Validation, which changes nothing, does not prompt. Most pages act on the active connection, which is separate from the CLI’s default org.

The feature set covers connection management, Scratch Org creation and pools, a query editor with autocomplete and a Schema view, record editing with a preview of changes, and CSV, Excel or JSON import and export through the Bulk API. Apex and test pages include anonymous Apex, coverage views and log insights. Deploy and Retrieve offers a diff before any change, and Code Analyzer runs several engines. Org Info includes a Security Health Check view and an org comparison.

On security, sfDesk says it stores no passwords or tokens, runs only a fixed set of commands without a shell, and sends no data elsewhere beyond update checks. Exported sign-ins are encrypted with a password you choose. The app is built with Tauri 2, a Rust core and a React and TypeScript interface.

Read the original at dev.to (opens in a new tab)

Worth reading?

RecommendedFlow and admin

Using plauti to find, Merge and prevent Duplicate records in Salesforce (opens in a new tab)

You will learn how the Plauti package builds deduplication scenarios, tests them, runs jobs, prevents duplicates at entry and restores merges.

Why read this

The review also shows where it goes beyond Salesforce's native Duplicate Rules.

  1. Build a matching scenario
  2. Test it with Scenario Tester
  3. Run jobs and review groups
  4. Merge with AI recommendations
  5. Restore if a merge was wrong
Plauti's deduplication process runs from scenario to restore

Salesforce’s built-in Duplicate Rules cover only part of what organizations need for duplicate management. Plauti’s managed package aims to fill the gaps by handling deduplication, merging and restoring records, with AI assistance layered on top. The article presents it as one of the phases of a wider data quality lifecycle covering monitoring, cleaning, prevention and action.

The core of the package is the scenario, which works much like a matching rule: it lists the fields to compare, a matching method and weighting for each, and a threshold above which records are flagged as duplicates. An AI agent can generate a scenario from a natural language prompt, and a Scenario Tester lets teams preview its behavior on real data before using it. Merge rules decide which record survives and which field values are kept, and multiple merge rule sets per object are supported. Duplicate prevention covers manual entry through overridden New and Edit pages, monitoring of API integrations, Data Loader imports and web forms.

Jobs run scenarios across objects on a schedule, with optional auto-merge, and results can be reviewed group by group, merged or marked as false positives. AI Match and Merge Recommendations help reviewers decide, and an audit log records who changed what. The package also offers a Model Context Protocol connection for running deduplication from a desktop AI client, and a restore feature that tracks changes to records so that mistakes can be reverted. Ten Flow actions and a Screen Flow component allow integration into declarative processes, and Apex plug-ins and a CLI support developer-led setup. The article’s main use case is cross-object matching of Leads to existing Accounts, so that duplicate work and lost deals are avoided. Setup is largely guided in-app, enabling AI recommendations requires signing a DPA, and pricing is bespoke with a 14-day trial of premium features.

Read the original at Salesforce Ben (opens in a new tab)

Worth reading?

Apex and platform

How the 15 to 18 character Salesforce ID conversion works, with an Excel formula (opens in a new tab)

You will learn why the 18-character Salesforce ID exists, how its three check characters are computed, and the Excel pitfall that produces a wrong suffix.

Why read this

It also shows how Apex normalizes Id values automatically.

  1. Split the 15-character ID into three chunks
  2. Set a bit for each uppercase letter
  3. Sum the bit values to get 0 to 31
  4. Map the value onto A-Z and 0-5
The 18-character suffix is built from three five-character chunks

Salesforce record IDs come in a 15-character case-sensitive form and an 18-character form. The 15-character ID causes problems in Excel and most SQL databases, which are not case-sensitive, so VLOOKUP can silently merge records whose IDs differ only in letter case. The 18-character form appends three check characters derived from the case pattern, which makes the ID safe in case-insensitive systems.

The author describes the algorithm: the ID is split into three five-character chunks, and for each chunk a bit is set for every uppercase letter, with positions worth 1, 2, 4, 8 and 16. The resulting 0 to 31 value is then mapped onto the characters A to Z and 0 to 5. A worked example shows 00ABc producing 12, which maps to M.

The key rule for Excel is to use a formula based on CODE(), testing character codes 65 to 90, rather than comparisons made with UPPER(). UPPER treats digits as uppercase and yields a wrong suffix without any error. In Apex, developers rarely need to convert IDs by hand, since Id variables normalize automatically to the 18-character form.

The full article carries the complete Excel formula, an Apex utility method called to18CharId(), and a bulk converter that verifies its results with a checksum.

Read the original at dev.to (opens in a new tab)

Worth reading?

Flow and admin

Using Duplicate Rules and Matching Rules to stop Duplicate records in Salesforce (opens in a new tab)

You will learn how duplicate rules and matching rules work together, how to choose matching criteria, and a practical order for rolling out Alert and Block modes with a regular cleanup routine.

  1. Enable duplicate rules in Alert mode
  2. Watch alerts for about two weeks
  3. Fix matching rules that are too loose or tight
  4. Switch worst offenders to Block
  5. Schedule a monthly duplicate cleanup
The suggested order for rolling out duplicate rules

Duplicate records quietly undermine reporting in a Salesforce org. Duplicate Rules watch records as they are created or edited and compare them against existing records using a Matching Rule. When a match is found, the rule either blocks the save or warns the user. The article recommends starting in Alert mode, since a hard block on leads can stop reps from logging genuine new opportunities.

The Matching Rule determines how well the Duplicate Rule performs. The article suggests matching contacts and leads on email, which it describes as the most reliable single identifier, and matching accounts on name plus a second field such as website, phone or billing city, because name alone produces false positives. Fuzzy matching, where offered, catches variants like Jon and John Smith, and the matching threshold should be set so that users are not warned constantly.

Duplicates usually enter through Web-to-Lead and data imports, manual entry, and integrations whose matching criteria do not line up with the Duplicate Rules. Existing duplicates are handled separately with Duplicate Record Sets and the Potential Duplicates component on record pages. When merging, the article advises keeping the record with the most history and assigning the merge process to one or two admins on a monthly schedule.

The suggested setup order is to enable Duplicate Rules in Alert mode for accounts, contacts and leads, watch the alerts for about two weeks, adjust matching if users ignore alerts or never see them, then move the worst offenders to Block. Required fields such as email or company can further improve matching reliability.

Read the original at dev.to (opens in a new tab)

Worth reading?

In brief