Blog Archives

All good things …

I started this blog back in 2013 and have neglected it in recent years, mainly on account of my work commItments and treading that fine line called conflict of interests. As my WordPress hosting comes to an end soon, I

Posted in Uncategorized

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, force.com, 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, force.com, 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, force.com, 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, force.com, 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, force.com, 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, force.com, PHP, salesforce

Lightning Lookup Component – <aura:if> workaround

For those of you having tried to implement the Lightning Lookup from my post: https://meltedwires.com/2015/10/31/salesforce-lightning-lookup-component-v2/ 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, force.com, lightning, salesforce, Uncategorized

Paris 13-12-2015

My girlfriend and I were lucky to escape from Le Bataclan on Friday night in Paris while watching The Eagles of Death Metal. We survived thanks to the love and compassion of the people of Paris and we thank them

Posted in travel, 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, force.com, lightning, salesforce
About Me
Product Services Developer at:
FinancialForce.com
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!)

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