Category: Technology

Java Command Line App Using the Salesforce WSC

May 17th, 2010, 8 Comments

The 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 then queries for the 5 newest [...]

Uploading an Attachment using Visualforce and a Custom Controller

April 28th, 2010, 7 Comments

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 objects: Account Asset Campaign Case [...]

Create a New Record in Force.com Sites

April 27th, 2010, 10 Comments

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 like. You can try the code [...]

Uploading a Document using Visualforce and a Custom Controller

April 22nd, 2010, 8 Comments

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 the finally block in the [...]

Enforcing Apex Security With Sharing Keywords

April 21st, 2010, 2 Comments

Security is a major foundation of the Force.com platform. Not only is security available declaratively but it is also baked into the Apex language itself. Most Apex scripts run in system context without respect to the current users permissions, sharing rules and field level security. This ensures that triggers and web services have access to [...]

Using AggregateResult in Salesforce.com SOQL

April 12th, 2010, 5 Comments

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(fieldname), count_distinct(), sum(), avg(), min() and max() [...]

Easily Search and Edit Records with Visualforce

April 7th, 2010, 16 Comments

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 to search for records by keyword [...]

Visualforce Row Counter for Iteration Components

April 2nd, 2010, 7 Comments

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 components so here is proposed [...]

Integrate Chatter & Twitter on Google App Engine using OAuth

March 17th, 2010, No Comments

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 develop our Social PS Enterprise [...]

Writing an Inbound Email Service for Salesforce.com

March 12th, 2010, 24 Comments

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 attachments. Using the information in the email, [...]

Feed

http://blog.jeffdouglas.com / Technology

WordPress Appliance - Powered by TurnKey Linux