Parsing CSV files in Apex

Nonprofiteering, SalesForce on September 12th, 2009 4 Comments

In my grousing about the lack of easy CSV parsing in Apex, I began to feel like Paul Rudd’s character in Web Hot American Summer. Usually it’s not something you would need to do in SalesForce – the Import Wizard or Data Loader are built to do this easily for one table at a time. [...]

Tags: , ,

One Silly SalesForce Internal Server Error

Nerding, SalesForce on February 9th, 2009 No Comments

After about a half hour of debugging, I figured out that if you’re calling a method from an inputText VisualForce element, a la <apex:inputText value=”{!BiteMe}” /> And if that method’s setter is private, exempli gratia public String BiteMe { get { return ‘gnash snarl’; } private set; } Then SalesForce will give you an Internal [...]

Tags: , ,

SalesForce Development ARGH!

Nerding, SalesForce on January 11th, 2009 5 Comments

My aim with this post is to outline some of the challenges of SalesForce development with an anecdote from my recent efforts in this arena.    To start, I wanted to do something fairly simple. There’s a semi-public area of SalesForce called the Customer Portal that my client had enabled. It allows for a subset [...]

Tags: , ,

Display a Multi-picklist as Checkboxes

Nerding, SalesForce on December 15th, 2008 3 Comments

Normally I wouldn’t post a code sample regarding something (seemingly) so straightforward, but this took myself and a contractor too much time to figure out.  Multi-picklist fields in SalesForce.com are many-to-many relationships between a record and a set of strings.  You can define what options are available in the object definition, and then select which [...]

Tags: , , ,

Extracting Schemas from SalesForce

Nerding on November 26th, 2008 2 Comments

It took me way too long to figure out how to get SalesForce to export schema information on an object.  It seemed so tantalizingly easy – the salesforce.schema file is right there in the IDE but it’s a placeholder for a dynamically updated widget…that won’t export the XML it clearly contains. So, I learned about [...]

Tags: , , ,