Using RSA-SHA1 with Salesforce Crypto Class

This is a rather obscure post but it will definitely come in handy to someone trying to use the RSA-SHA1 algorithm with the Salesforce Crypto class. I'm spent the past two days trying to hook up OAuth using Apex and various Google Services. The standard HMAC-SHA1 algorithm is fairly straight…

Read more

Error Compiling Salesforce Metadata API with WSC

This might not be relevant right now but you may find it useful in the near future. I'm tinkering with an app that spits out documentation for an org. I really hate doing documentation and am quite lazy so I thought I'd write something to allow my computer to do…

Read more

Testing Salesforce.com Controller Extensions

One thing that salesforce.com is working on is providing developers with a better testing environment. Salesforce.com requires you to write test cases to deploy your code to production but sometimes the process can be painful. Given the lack of something like jUnit you have to implement your own…

Read more

Java Command Line App Using the Salesforce WSC

Force.com Web Service Connector (WSC) is a high performance web services stack that is much easier to implement than the "tried and true" Force.com Web Services API. Here's a quick command line app you can use as a starter application. This class simply creates a new Account and…

Read more

Uploading an Attachment using Visualforce and a Custom Controller

This is a follow up post to Uploading a Document using Visualforce and a Custom Controller showing an example for uploading an attachment for a Contact. The Visualforce page and Controller is very similar with a few exceptions.Attachments are different than documents and are only available for the following…

Read more

Create a New Record in Force.com Sites

So someone asked me yesterday for some code to allow external users to create contact records in Salesforce.com. They needed a simple form where people could enter the details and once submitted receive a confirmation of what information was entered. Here's what the final page that was developed looks…

Read more

Uploading a Document using Visualforce and a Custom Controller

The Salesforce docs for the inputFile Visualforce component has an example of uploading a document using the Standard Controller. Here is a quick example of using a Custom Controller in case you want to make the upload process part of a larger transaction.Make sure you take a look at…

Read more

Using AggregateResult in Salesforce.com SOQL

In Spring ‘10, Salesforce.com released new Apex functionality for aggregate functions in SOQL. These queries return an AggregateResult object which can be somewhat confusing at first. I've noticed quite a people searching my blog for this topic so I thought I'd throw some examples together.So the functions count(…

Read more

Easily Search and Edit Records with Visualforce

I tend to over think Visualforce development sometimes and make it harder than it should be. Development with Force.com is surprisingly easy, elegant and quick. For example I recently needed to develop a way for the users to search for records and update specific values. Users should be able…

Read more

Visualforce Row Counter for Iteration Components

I have been working on a Visualforce page that displays a list of items from a collection and I want to display the current row number next to each item. I found this post that describes a solution but I think there may be a bug in one of the…

Read more