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, 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

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

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

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

Pebble Watch: Salesforce Approvals – Part 2

In Part 1, we looked at creating the Salesforce server application to expose the Approvals and the target objects via some REST based web services. In the second part of this article we look at creating the Pebble watch app

Tagged with: , , , , ,
Posted in apex, code, force.com, pebble watch, 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.