Skip to content
Home » Pragmatic Bear’s Salesforce 201

Pragmatic Bear’s Salesforce 201

I write about the things I work on, often as I work on them. You can find reusable utility code or explanations of my process. Many times there is no clear end and a lot of further work is required. Code samples are usually included. Where it makes sense I include full (sometimes directly deployable) code bundles via GitHub.

A very responsible api developer who does not make breaking changes in their packages

Moving Metadata Between Packages

Nov 6, 202411964 min

Moving metadata between packages is dangerous. Be a responsible API developer and don’t make breaking changes.

Open box with a lock and chain that was loosed, but inside some books are still locked with another chain

Not so Unlocked Packages

Apr 30, 2024126115 min

Building a neat UoW wrapper for compounding service methods effectively and merging the Unit of Work approach with updating SObject instances in Triggers.

Bear with a sign, generated by DALL·E

DmlWork a.k.a. the UoW meets Triggers

Nov 1, 20238808 min

Building a neat UoW wrapper for compounding service methods effectively and merging the Unit of Work approach with updating SObject instances in Triggers.

Image of the DFA approach to analysis of Salesforce Graph Engine

SFDX GitHub Code Review – Part 3

Jan 23, 20239407 min

A few months back the result of this post series was tagged in a GitHub conversation about SFDX code scanner. I was chuffed and determined to find time to finally make it more complete. Over the holidays I finally found a bit of that time …

Custom lightning-input-field

Custom lightning-input-field

Dec 6, 202246014 min

Allowing the Label and Helptext of lightning-input-field to be customised while maintaining all the other standard features as part of a record-edit-form. Long story, mostly solved, long way still to go.

Test Execution Dashboard

Test Execution Dashboard

Nov 30, 20226805 min

Salesforce dashboard for monitoring Test Execution time long term intended to encourage writing faster tests.

Deleting Test Results via CLI

Deleting Test Results via CLI

Oct 17, 20225468 min

Clearing Test Execution History from a Sandbox automatically as a workaround to a known issue with CLI failing to read Test Results with “Cannot read properties of undefined (reading ‘Status’)” error. A lesson in misdirection by expectation and the need for attention to detail in troubleshooting.

Units of Fun

Units of Fun

Oct 4, 202239910 min

Peeping into the Unit of Work to help with Batch job chaining and having to really think about who extends who when mocking and testing.

Query Caching with Selectors

Query Caching with Selectors

Aug 1, 202251217 min

Building a flexible SOQL query result cache usable with Enterprise Patterns’ Selectors.

CCTV camera image

Trigger Performance – Monitoring

Jul 14, 202254514 min

TL; DR;Creating a Logger to measure Limit usage in Apex and building Dashboard to monitor improvements (or otherwise) over time.The ProblemReviewing the logs is not easy. Sometimes, it’s even impossible. There is a limit to how much can be stored and the rest gets omitted. And having the detailed logs…

Load More