Today3 stories · 3 briefs

The Daily Org

Spring '27Sandboxes 6 Feb 2027

Curated by Abhinav (opens in a new tab)

Vol. I · No. 51The independent daily for Salesforce admins, developers and architects3 stories · 3 briefs

Must-readArchitecture

Running custom Apex actions in user mode for assistant-driven access (opens in a new tab)

You will learn why Apex invocable actions exposed to Copilot or agents should use with sharing, WITH USER_MODE and AccessLevel.USER_MODE, and how to test them under a low-privilege user with System.runAs.

  1. Declare the class with sharing
  2. Query with WITH USER_MODE
  3. Update with AccessLevel.USER_MODE
  4. Return readable messages to the assistant
How the example action keeps the running user's permissions in force

The author starts from the Copilotforce announcement, in which Salesforce data is reached from Microsoft Copilot through authenticated user access that keeps existing permissions, Sharing Rules and audit trails. Standard writeback actions already respect these controls, but any custom invocable Apex, Flow calling Apex or REST endpoint is the developer’s responsibility.

Apex runs in system mode by default, so an invocable method that queries a field the user cannot see will return that data to an assistant acting on their behalf. A class declared without with sharing also ignores the user’s record access. When people worked mainly in the Salesforce UI, page layouts hid much of this; with Copilot, Claude or Slack as the interface, the server-side enforcement is what protects the data.

The article gives an example invocable class, ApprovePaymentAction, declared with sharing. Its SOQL uses WITH USER_MODE so field and object permissions apply, and its update uses Database.update with AccessLevel.USER_MODE and allOrNone set to false, so Validation Rule messages come back as strings the assistant can show. The author suggests writing those messages so they read well in a chat window.

The post closes with a runAs test that runs the action as a Standard User and asserts the approval is blocked, and a checklist: with sharing, WITH USER_MODE on every query, AccessLevel.USER_MODE on every DML, readable validation messages, field history tracking on changed fields, and a low-privilege runAs test for each exposed action.

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

Also told by InfallibleTechie (opens in a new tab)

Worth reading?

RecommendedReleases

Salesforce developer docs now offer Markdown copies and llms.txt for AI tools (opens in a new tab)

You will learn how to get any Salesforce developer doc page into an AI assistant as clean Markdown, how to point agents at the llms.txt index, and where these actions are not available.

Salesforce Developers documentation now includes a row of actions below each page title on the newer docs. Previously, AI tools often received bloated HTML or empty shells from client-rendered pages, and copying text lost headings, lists and code blocks. The new actions let readers copy a page as Markdown, view its Markdown version, or copy a direct Markdown link. The first actions arrived in June 2026, and AI-focused options were added in October 2026.

The toolbar also gives agents a map of the documentation. The main llms.txt file, which follows an open standard, lists more than 40 products, and each product has its own llms.txt file linking to the Markdown version of every page. Readers can open the main index, or copy its URL to add to an assistant’s sources or an agent’s instructions, so an agent can locate the right page without searching the web.

The More actions menu also opens ChatGPT, Claude or Perplexity with a prompt that names the page and links to the docs map. These options pass links rather than page text, so the assistant needs web access enabled and must follow the links itself. The actions appear only on English pages in the newer docs, and not on some API reference pages built from a spec.

Under the hood, Markdown files are generated during the documentation build from the same source as the HTML pages, sharing a URL path with a different extension. Each product build produces its own llms.txt, and the main index combines them without overwriting entries from other products.

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

Worth reading?

Agentforce and AI

Using a Git-based knowledge graph to give AI agents reliable engineering context (opens in a new tab)

You will learn how Salesforce structured a Git-backed, domain-split knowledge graph for AI agents, the mistakes that shaped it, and how it cut Kubernetes upgrade effort.

Why read this

You will also see the tutorial steps and the open problems around stale knowledge and agent accountability.

  1. Choose one engineering domain
  2. Create Git repository with AI agent
  3. Connect and validate knowledge sources
  4. Run LINT checks regularly
The Second Brain setup process, from choosing a domain to ongoing maintenance

Salesforce engineers found that architectural decisions were scattered across repositories, meeting transcripts, collaboration tools and documentation, and that some were being reversed without anyone noticing. As AI agents entered their workflows, they built a Git-based knowledge system called the Second Brain, backed by a knowledge graph that links decisions to source evidence, ownership and implementation. Today it spans 21 domain-specific repositories, more than 200 sources and over 250 articles.

Their first attempt, a single large repository, made agents slower and more expensive, because retrieval slowed and irrelevant material consumed context. They split it into smaller domain brains connected through the graph, so agents start in the relevant domain and follow links only when needed. The article also stresses knowledge integrity: keeping source references, surfacing contradictions for human review, flagging gaps, and keeping sensitive material out of the repository rather than inventing answers.

The article walks through a roughly 20-minute setup. Readers pick one domain, create a repository with an AI coding agent using the Second Brain plugin and skills from GitHub, and ingest sources such as repositories, pull requests, meeting notes and tickets, using MCP connectors where available. Updates take about three minutes after the first ingestion. A LINT skill checks for conflicting decisions, outdated knowledge, missing connections, undocumented topics and unprocessed pull requests, and the team runs it manually each week.

The reported results include about 80% automation of Kubernetes upgrades, cutting hands-on work from three months to three weeks, and a new DevOps engineer completing a first production pull request in under two weeks. The authors note that production upgrades still need human oversight and that the figures are not from a formal productivity measurement. They close by naming unresolved issues: knowledge freshness, autonomous validation, and agent identity and accountability.

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

Worth reading?

In brief