Blog Archives

Pre-populating Standard Page Layouts

detour sign

Warning: This uses undocumented methods. As with any code that relies on anything undocumented it’s not supported and it’s prone to breaking without warning so don’t rely on it working tomorrow! It’s a known hidden feature of Salesforce that you can


Tagged with: , , ,
Posted in apex, code,, salesforce

Managing the heap using SOQL For Loops (with a little code seperation)

I’m a big fan of code separation and code reuse. When I’m coding I like to keep my SOQL out of the business logic and in a gateway class of its own. That way I can reuse common queries in

Tagged with: , , , ,
Posted in apex, code,, salesforce

Undercover Maps

The Map class is probably the most useful collection on the Salesforce platform. When you combine a Map with a SOQL query you have a really cool tool for automatically populutating a Map of SObjects keyed on Id using a

Tagged with: ,
Posted in apex, code,, salesforce
About Me
Product Services Developer at:
All views expressed here are my own. More about me and contact details here.
Please sponsor me …
My wife and I are running the Great North Run to support The Nick Alexander Memorial Trust

If you've found my blog useful, please consider sponsoring us. Sponsor me on BT MyDonate

Enter your email address to follow this blog and receive notifications of new posts by email.

Copyright (there isn’t any, feel free to reuse!)

To the extent possible under law, Tony Scott has waived all copyright and related or neighboring rights to Examples and Code Samples. This work is published from: United Kingdom.