Tag: Salesforce

[Salesforce / RemoteAction] Using Date fields on a RemoteAction (PITA ALERT!)

I’ve just come through a bug on the Date field handling for Visual Force @RemoteAction. We want to pass to a remote action a list of SObjects to be handled correctly. This is the controller that hosts the @RemoteAction method: public class MyController(){ @RemoteAction public String doAction(List<contact> contacts){ return ‘All is ok!’; } } This […]

[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 / Lightning] Loading scripts with RequireJS

a{color:red !important;} UPDATE Due to the introduction of the ltng:require, this post is no more a valid solution. Refer to the official Lightning documentation. The following is a post that summarizes this blog post‘s solution (if you are not a TLDR; reader you will find there all my trials and errors). Dreamforce 2014 came out […]

[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 […]

[Salesforce / Lightning] Loading scripts

a{ color: red !important;} UPDATE Due to the introduction of the ltng:require, this post is no more a valid solution. Refer to the official Lightning documentation. This post has been more like a request for help, rather than a technical blog post, but it came to be an awesome way to see Salesforce community in […]

[Salesforce] Practical guide to setup a LiveAgent

I’ve created a simple guide to set up a Live Agent on an ORG with a custom console app. This is the link: Live_Agent_base_configuration.pdf . This is a really simple guide believe me and no further explaination is given, beucase the only aim is to make Live Agent working. Let me know what you think! […]

[NodeJS + Salesforce SOAP WS] How to consume a Salesforce SOAP WSDL

I was wondering how to consume Salesforce WSDLs with nodejs. I found Node Soap package (see npm) and I tried to consume a Partner WSDL. Then I saved the WSDL in the “sf-partner.wsdl” file and played with the methods to get nodeJS speak SOAP with Salesforce. var soap = require(‘soap’); var url = ‘./sf-partner.wsdl’; soap.createClient(url, […]