Short Cut the Recordtype Selection Step

In larger orgs you may have tens or hundreds of recordtypes. For instance, when a user creates a new Opportunity, the first step in the process is to select the correct recordtype from a list of x choices. However, what if, for instance, you have a low-level user that only…

Read more

Integrate Chatter & Twitter on Google App Engine using OAuth

Cross-posted at the Appirio Tech Blog. At Appirio we've been excited about Salesforce Chatter for quite a while. We firmly believe that Chatter has the potential to bridge the gap between enterprise applications and the way people work. We were luckily enough to receive special prerelease access to Chatter to…

Read more

Writing an Inbound Email Service for Salesforce.com

Creating an inbound email service for Salesforce.com is a relatively straight forward process but there are a few thing to explain to make your life easier. The email service is an Apex class that implements the Messaging.InboundEmailHandler interface which allows you to process the email contents, headers and…

Read more

Error Compiling WSC AppEngine Partner Jar for Salesforce.com Sandbox

I'm working on a demo for Google App Engine that connects to one of our Salesforce.com Sandboxes (hope to be done tomorrow or Monday). The Force.com Web Service Connector (WSC) project has a partner-library.jar that you can download and add to your project to get up and…

Read more

Locking sObject Records

I don't see this discussed often, but Salesforce.com has the ability to lock sObject records while they are being updated to prevent threading problems and race conditions.To lock records, simply use the FOR UPDATE keywords in your SOQL statements. You do not have to manually commit the records…

Read more

Passing Parameters with a CommandButton

This post is a slight tweak of yesterday's post, Passing Parameters with a CommandLink. In theory you should just be able to switch out the CommandLink component with a CommandButton component and be golden. However, not so fast. There seem to still be a bug with the CommandButton component.Here…

Read more

Passing Parameters with a CommandLink

Here's a small example of how you can pass a value to another method via a command link for Salesforce.com. When the link is clicked, the setter fires for the public member nickName. The button click then calls the processLinkClick method where you can do something like process the…

Read more

GWT UiBinder – Passing Objects to Widgets

A couple of weeks ago I wrote a GWT 2.0 tutorial for passing simple values to a widget and this is the (promised) follow up on how to pass an object to a widget. For more info on working with the new UiBinder, see Declarative Layout with UiBinder at…

Read more

Relationship Lookup Objects in Triggers are NULL?

I see this question once in awhile on the Salesforce.com message boards so I thought I'd put something together. So in this scenario you have a Sales_Order__c custom object which has a lookup relationship to Opportunity. When processing the Sales_Order__c records in your trigger, you…

Read more

SOQL – How I Query With Thee, Let Me Count the Ways

I've been wanting to write this post since the new aggregate functions were announced in Spring 10. With the new 18 version of the API in sandboxes I can finally do a high level overview of SOQL (Salesforce Object Query Language) for all of the newcomers to the Force.com…

Read more