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

The Trouble with Dates and Times

Dates and DateTimes don’t always play nicely when you’re trying to push them through from environment to environment. You often have to mess about with them a bit to shoehorn them in and out of Salesforce. I’m going to look

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

Mocking Multiple HTTP Requests to the Same Endpoint

My Blog posts are like buses. You don’t see one for ages and then two come along at once. I was musing, like you do, what to do when Unit Testing a service that makes successive call-outs to the same

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

Wrapping Custom Metadata to Support Unit Testing

Wrapping Paper

My last post looked at using a wrapper class to make Custom Settings more convenient to access from apex code and to ease defaulting and unit testing. If, like me, you’ve taken the leap to using Custom Metadata instead of

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

Wrapping Custom Settings to Provide Defaults and Ease Unit Testing

I have a little pattern I use for wrapping custom settings. It has two uses, first to provide sensible defaults if the settings have not been configured and secondly to make writing unit tests easier with predictable values. If you’ve

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

Connecting to Salesforce using OAuth 2.0 from PHP

Introduction Salesforce, with its rich set of APIs allows endless integration with 3rd party systems. The key to accessing Salesforce from another system, be it a Web App, Mobile device or even a command line script, is logging on and

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

Lightning Lookup Component – <aura:if> workaround

For those of you having tried to implement the Lightning Lookup from my post: You may have experienced what appears to be a platform bug surrounding <aura:if> that results in the friendly, yet uninformative error: “Something has gone wrong. Cannot read property ‘childNodes’

Posted in apex, code,, lightning, salesforce, Uncategorized

Salesforce Lightning Lookup Component : Version 2

Version 2 This is Version 2 of the Salesforce Lightning Lookup Component. I had one of those, ‘Why didn’t I do it like that instead?‘ moments in the shower this morning. Essentially, it’s less code as I’ve done away with the rendering

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

Salesforce Lightning Lookup Component

Note: This article has been superceded by: Version 2.  I’ve been playing around with Salesforce Lightning components and one of the obvious things that seems to be missing is a UI component to lookup a record in a Salesforce custom object

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

Salesforce Lightning support in Sublime Text 3 for Mac OSX

If you’re developing Salesforce Lightning components you’ll probably reach a stage where you get fed up of using the Dev Console. Right now the Eclipse based IDE doesn’t support lightning and Joe Ferraro is still working on the latest updates

Tagged with: , , , , ,
Posted in 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.