Tag: Apex

[Salesforce / Apex] Integer vs Double math expressions

This is a quick post about some findings about how math expressions are handled by Apex engine, arisen from the developments of a personal package to reproduce Salesforce Formulas in Apex (and even more). For those out there that are super expert on this field of programming, this post may seem simplicistic and “obvious”, but […]

[Salesforce / SSO] Implementing Delegated SSO

a{color:red !important;} Playing with code is cool, but playing with useless stuff is even better ๐Ÿ™‚ Ok, I’m kidding, I just want to say that sometimes you have to get your hands dirty to understand what lies underneath things and try to build useless stuff to see simple “Hello world!” appear! This is the case […]

[Salesforce] My favorite Spring ’15 features

a{color:red !important;} h3{color:red !important;} This is my top 10 list of the Spring ’15 Force.com platform update’s features. Make Long-Running Callouts from a Visualforce Page This is a really important feature. Imagine you have big VisualForce pages in which Apex methods, triggered by buttons / links / rerenders, do one or more callouts to external […]

[Salesforce / Apex] Retrieving zipped static resource files from code

Some days ago one of my awesome colleagues asked me: “Can you get a zipped file into a static resource from Apex?”. My very first thought was NO. But after having said that syllable, I understood that this could be possible, using an HTTP GET call + cookies + correct resource URL. This is the […]

[Salesforce / Apex] Queueable interfaces – Unleash the async power!

The next Winter ’15 release came with the new Queueable interface. I wanted to go deep on this, and tried to apply its features to a real case. If you are (like me) in a TLDR; state of mind, click here. The main difference between future methods (remember the @future annotation? ) and queueable jobs […]