I started this project with what sounded like a small goal: call an Agentforce agent from a Lightning Web Component and show the reply in my own UI. The first API call wasn’t the difficult part. The interesting work began after that: The finished app is a Lightning Web Component backed by an Apex controller…. Continue reading
Post Category → Salesforce Things you should know
Salesforce Record Locking and Concurrency – Salesforce Things You should Know
If you build on Salesforce long enough, you will hit a lock. This post explains how Salesforce Record Locking and Concurrency work, why you see UNABLE_TO_LOCK_ROW, and how to write code that behaves correctly under load.
Salesforce Query Plan – Salesforce things you should know
This is Part 2 of Salesforce things you should know. In Part 1 we covered Selective Queries and Indexes. Now let’s turn that theory into practice with the Query Plan. If you want predictable SOQL performance, this is the tool you open before you deploy your code.
Continue reading