Today4 stories · 1 brief

The Daily Org

Spring '27Sandboxes 6 Feb 2027

Curated by Abhinav (opens in a new tab)

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

Must-readDevOps

Where the Metadata API deployment result keeps its errors and coverage warnings (opens in a new tab)

You will know which fields of the deployment result hold component errors, test failures and coverage warnings, and why a deployment can fail with an empty componentFailures list.

Why read this

The post also gives a checklist for diagnosing a failed deployment.

  1. Set includeDetails to true
  2. Check componentFailures
  3. Check runTestResult failures
  4. Check runTestResult codeCoverageWarnings
Where to look when a deployment fails with no component errors

A failed Metadata API deployment often reports no component errors because the cause sits in another part of the result. The post explains the result layout, using Salesforce’s documentation. The overall outcome is in the DeployResult returned by checkDeployStatus(), but the detail is in its details field, which is only populated when includeDetails is set to true.

The details hold componentFailures and componentSuccesses, each a list of DeployMessage entries, plus runTestResult and retrieveResult where applicable. Each DeployMessage is typed as Warning or Error, a distinction that did not exist before API version 18.0, when every problem stopped the deployment. While a deployment is running, only componentFailures is filled in; the other fields appear after it finishes, so a mid-run check can show failures with no test results yet.

Test-side problems sit one level further down, in runTestResult. Failing tests are listed in its failures, and coverage problems in codeCoverageWarnings. A deployment can therefore fail with componentFailures empty and no test failing, for example when a class is not covered under a RunSpecifiedTests run. The post closes with a checklist: confirm includeDetails was set, check componentFailures, then check runTestResult failures and coverage warnings, make sure the deployment has finished, and compare the package’s classes with the classes the named tests cover.

The post also notes that the component lists moved from the deployment result into details, a change Salesforce says took effect in API version 29.0, so older scripts may look in the wrong place.

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

Worth reading?

RecommendedFlow and admin

Fixing Data in a before-save Flow instead of blocking users with Validation Rules (opens in a new tab)

You will learn how a before-save Record-Triggered Flow can correct a field value before a Validation Rule evaluates it, so users are not stopped by errors.

Why read this

You will also see when a Validation Rule should stay and how to make it less disruptive.

Validation Rule

  • Checks the value as entered
  • Blocks the save with an error
  • User must fix the value by hand

Before-save flow

  • Corrects the value before the check
  • Record saves with no error
  • Works for UI, API and Data Loader
Validation Rule blocks the save, while a before-save flow corrects the value first

The author opens with a sales manager whose reps kept personal spreadsheets because repeated validation errors made Salesforce slow to use. He argues that some Validation Rules can be replaced by logic that corrects the data instead of rejecting it.

A Record-Triggered Flow set to Fast Field Updates runs before the record is saved, ahead of Apex before triggers and Validation Rules. A corrected value is therefore what the Validation Rule checks, so the user sees no error. The same applies to every source that saves the record, including the UI, the API and Data Loader.

As an example, a rule requiring the Website field on Account to start with http or https can be replaced by a flow. The flow uses a formula resource that prefixes https:// when needed, then an Assignment element sets the field back on $Record. No Update Records element is needed, and the author advises testing in a sandbox and deactivating the rule while keeping its formula in the description. Other candidates include forcing uppercase codes, stripping dashes from tax IDs and deriving a region from a country.

Where the correct value cannot be inferred, as with a loss reason on a Closed Lost opportunity, the rule should stay but be made less painful. The author suggests showing the field only when relevant with Dynamic Forms, marking it required on the page, placing the error on the field, and scoping the formula with ISCHANGED(StageName).

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

Worth reading?

Agentforce and AI

Seven building blocks of an enterprise AI agent architecture (opens in a new tab)

You will learn the seven architectural layers an enterprise AI agent needs beyond an LLM and a prompt, including perception, planning, memory and retrieval, execution, and feedback.

Why read this

The article walks through a flight-change example to show how the layers interact.

Enterprise AI agent architecture

  • Perception
  • Reasoning and planning
  • Memory and retrieval
  • Action and execution
  • Feedback and adaptation
The article's enterprise AI agent architecture is built from seven blocks

The article argues that an AI agent for business is more than a language model with a good prompt. It contrasts a traditional chatbot, which explains policies and hands off to a person, with an agent that can read a booking, evaluate alternatives, calculate charges, execute an approved change through APIs and verify the result. The author frames agents as engineered enterprise systems that must run reliably, securely and within existing processes.

The first two building blocks are perception and reasoning and planning. Perception covers collecting input from several channels, processing it, identifying intent and entities, enriching context from enterprise systems, and handling multimodal input such as screenshots. Reasoning and planning covers understanding the objective, evaluating information, deciding on options, decomposing tasks, managing dependencies and validating the plan before execution. The article stresses that critical eligibility, financial or compliance decisions should not rest on LLM reasoning alone, and that human approval should apply to high-impact steps.

The next blocks cover memory and retrieval, and action and execution. Memory is described as working, long-term, episodic and semantic, with retention and consent controls, while retrieval-augmented generation grounds answers in current enterprise knowledge. Action and execution covers tool selection, API invocation, authorization, workflow orchestration, transaction execution, result verification and error recovery. The article notes that idempotency, least-privilege access, transaction integrity and auditability matter, and that an agent should verify outcomes rather than assume success from an accepted API request. The seventh block, feedback and adaptation, is introduced at the end and the article is cut off partway through that section.

Read the original at SalesforceCodex (opens in a new tab)

Worth reading?

Flow and admin

Use a Custom Object and Screen Flow to find breaks before automating with AI (opens in a new tab)

You will learn how to build a Process_Issue__c object and Quick Action that let front-line staff log process breakdowns, and how to read the results before designing an AI agent.

Why read this

The approach is practical, though the core ideas are fairly simple.

  1. Staff log breaks in Process_Issue__c
  2. Group open reports by process and step
  3. Remove workarounds a rule or flow can fix
  4. Build an agent for what remains
  5. Update status and tell reporters
Order of work before an agent project, as the author describes it

The author argues that an AI agent built on a broken process will automate the breakage, and that the people who run a process hold the knowledge needed to find the breaks. He proposes a small Salesforce setup that lets them record problems from the record they are working on. The setup is a Custom Object, Process_Issue__c, with fields for the process, the step where it breaks, the workaround, a weekly frequency estimate, the related record Id and a status. It is set to Public Read Only so people can see and add to existing reports rather than filing duplicates.

The reporting side uses a Screen Flow with a recordId input variable, which Salesforce fills when the flow runs from a Quick Action on a record page. The flow shows one screen for process, step, workaround and times per week, creates a New issue record, and confirms who reviews reports and when. The Quick Action is added to Case, Order and Opportunity, and one flow can serve all three because the related record Id is stored as text.

Before any agent project, the author suggests grouping open reports by process and step and sorting by estimated weekly hits, with a summary report as an alternative for managers who do not write SOQL. Where a manual workaround can be removed with a Validation Rule, required field or Record-Triggered Flow, that fix should come first. Only the remaining work that needs reading, interpreting or customer conversation is a strong candidate for an agent. Instructions should be drawn from the logged workaround wording, and statuses should be updated so reporters hear back, which keeps them reporting.

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

Worth reading?

In brief