Platform2026-03-2912 min

Salesforce Order of Execution Deep Dive: The 20-Step Chain, Trigger Re-Firing, and Recursion Defense

Starting from a real-world bug where a Workflow Field Update creates duplicate Orders, this guide walks through all 20 steps of Salesforce record save execution order. Covers Before-Save Flow vs Before Trigger priority, the one-shot Validation Rule trap, Trigger.old counterintuitive behavior during re-execution, and the correct static Set pattern for recursion defense.

AAgentforce Lens
Read Article
Platform2026-03-0612 min

Connecting VS Code to Salesforce on Alibaba Cloud (SFoA): External Client App, Login Endpoints & Mac DNS Gotchas

VS Code org authorization on SFoA works differently from the global version: the built-in Connected App does not work, you must create an External Client App with PKCE disabled, switch the login endpoint to login.sfcrmproducts.cn, and deal with a Mac DNS check issue. This guide walks through the full setup from app creation to Command Palette authorization to CI/CD JWT flow.

AAgentforce Lens
Read Article
Platform2026-03-0621 min

Salesforce DX + VS Code Setup Guide: From Zero to First Deployment

The complete chain for setting up a Salesforce development environment: Node.js with nvm, Salesforce CLI (sf, not the deprecated sfdx) via npm, VS Code extensions and JDK setup, SFDX project structure, Dev Hub enablement and Scratch Org creation, Sandbox connectivity, daily push/pull/deploy commands, and a troubleshooting table for common errors.

AAgentforce Lens
Read Article
Platform2026-03-0515 min

Salesforce MCP Landscape: From Hosted MCP Servers to the Slack MCP Server

MCP (Model Context Protocol) has become the universal standard for AI Agents connecting to enterprise data. Salesforce has deployed MCP across five product lines: Hosted MCP Servers, DX MCP Servers, Heroku, MuleSoft, and Slack. This article provides a deep technical breakdown of each MCP Server type's Tool list, setup configuration, and security model—including JSON-RPC call examples and hands-on Claude Desktop configuration—plus a complete analysis of Agentforce's Gateway + Registry governance architecture as an MCP Client.

AAgentforce Lens
Read Article
Platform2026-03-0518 min

Migrating from Connected Apps to External Client Apps: A Practical Post–Spring ’26 Playbook

After Spring '26, new Connected App creation is blocked by default, with full enforcement expected by Summer '26. External Client Apps redesign external integrations across four dimensions: security model, role separation, Metadata API, and 2GP packaging. This article covers the complete technical comparison, three-step UI configuration, CI/CD deployment strategy for 4 metadata types, full OAuth flow migration (with JWT Bearer and Client Credentials code examples), permission redesign best practices, dual-run cutover strategy, and the Hosted MCP Server's dependency on ECAs.

AAgentforce Lens
Read Article