System.debug(‘TCO13’); //The event log

Day 1 – The arrival I arrived in Washington D.C. at 5 p.m., after 10 hours and a half of plane and more than 1 hour on line at the customs: no need to say I was really tired. That’s why the first day in Washington hasn’t been that good or exciting, no meeting with […]

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

[Salesforce / Canvas / NodeJS] Set up a minimum Canvas App (NodeJS style)

Following the old post [Salesforce / Canvas] Set up a minimum Canvas App (Java style) I’ve decided to put togheter the code I’ve used to talk to a Force.com Canvas App in NodeJS. For those who can’t wait the whole article, this is the repo (CanvasApp-NodeJS-Base). Follow this steps to configure an App (something is […]

[Github / Maven] Maven repository using GitHub

This simple post is a reminder on how to create a Maven2 repository and use it with Maven in a “pom.xml” file or in Java Play!. The first step is to create a GitHub Repository (it will be named “maven2”).Then reproduce the folder structure of a Maven Repository, as I did in my “Maven2” repo […]

[Visualforce / Tip] Always add a tag

Always add <apex:pagemessages/> at the beginning of your VF page to see if there are errors in loading/submitting VF page. If something underneath the Visuarlfoce is wrong, you don’t see anything (no clear log at least)! I was using the automatic SOQL generation of the “Object__c” standard controller, and to do this I usually use […]

[Salesforce / Canvas] Set up a minimum Canvas App (Java style)

This new post is about setting up a Force.com Canvas App and doing beautiful things with it. It comes from an old challenge I won (see Cloudspokes.com blog post), evenif in that case I used Javascript to get the session infos. What is a Canvas App? In simple words it is a way to integrate […]

[APEX] Strange automatic casting error from String to ID

Developing some APEX for a customer, I saw this error: System.StringException: Invalid id: -1 I checked the code and it was something like this: if(aString == anSObject.Id){ … } So a String object cannot be compared to an ID type if the first is not an ID? I switched the members: if(anSObject.Id == aString ){ […]

[Java Play! / Heroku] Setup Java Play! + Heroku + Eclipse

I’m not a very good developer, I have to admit it. I always forget, if I don’t “play HTML” for a while, how to define a CSS style class, so you can imagine what kind of memory I have (the worst kind), and what kind of problems I have to set an environment to make […]