Category: Apex

Calling a REST Web Service (XML) with Apex

December 4th, 2009, 8 Comments

This is a cool little example of calling a REST web service with Apex. You enter your address and the Apex code fetches the geo coordinates from Yahoo! Maps. The service returns the data as XML. If you want to run this demo in your own org, you will need to do the following: Add [...]

Force.com Demo with Twilio

November 28th, 2009, 2 Comments

Cross-posted at the Appirio Tech Blog. During Dreamforce 09 Kyle Roche and I participated in the Developer Hackathon. We hacked-up an application using Force.com and Twilio for inbound and outbound calling. We were only allotted two hours so we were not able to finish off the application during the hackathon. Here is the final demo [...]

Programmatically Creating Sharing Rules with Apex

November 25th, 2009, 5 Comments

Here’s a small Apex Trigger that demonstrates how to programmatically create sharing rules for objects with a private sharing model. It came in handy on a project about a year ago so I thought I’d post it. So the scenario is that the object has a private sharing model (Contacts in this case) so that [...]

Can't Get On The Apex Scheduler Pilot? Here's a Short Term Solution.

November 24th, 2009, 5 Comments

In Winter ’10, Salesforce.com released the Apex Scheduler. This feature allows you to schedule Apex classes to run at specific times. The features appears to be widely popular (200+ votes on the IdeaExchange) but is only in limited release. I’ve heard from a number of companies that they were not able to get on the [...]

Apex “Deep Clone” Controller

November 19th, 2009, 18 Comments

I wrote the following code at the Admin To Hero App Building Workshop and it was very popular. I think we used the code on 3 or 4 projects that day so I thought I’d post it to help everyone out. Essentially it is a Visualforce page and Apex Controller that allows you to do [...]

ActionSupport Example using Facets and JavaScript

November 6th, 2009, No Comments

You can make your UI much easier on your users by giving them clues on what is taking place when they click buttons, enter text or choose items in a picklist. This example shows how you can notify a user that something is taking place in the background when you are performing actions asynchronously. For [...]

New Contest: Twilio for Salesforce with Appirio

November 3rd, 2009, No Comments

Twilio just announced a new developer contest in conjunction with Appirio. Thanks to the (sleepless) efforts of Kyle Roche and Aslam Bari (both from Appirio), Twilio is now available for development on the Force.com platform. You can download the Force.com for Twilio classes, components and Visualforce pages at the Force.com Code Share site. If you haven’t heard of Twilio [...]

Using Saleforce DML statements or DML database methods?

November 2nd, 2009, 6 Comments

Salesforce allows you to perform database transactions (insert, update, delete, etc.) using either DML statments or DML database methods. While they perfrom roughly the same functionality (with a few exceptions), DML database methods provide a little more granular control when bulk processing exceptions occur. The Salesforce documentation is good and extremely detailed but these two [...]

Book Review – Development with the Force.com Platform

October 26th, 2009, 1 Comment

I spent a good part of the weekend going over the newly released book, Development with the Force.com Platform by Jason Ouellette from Appirio. The book covers a surprisingly large number of topics in under 400 pages and is a great reference for both Salesforce.com administrators and developers. In the effort of full disclosure, I must [...]

Preventing Recursive Future Method Calls in Salesforce

October 2nd, 2009, 6 Comments

Cross-posted at the Appirio Technology Blog Governor limits are runtime limits enforced by the Force.com platform to ensure that your code doesn’t, among other things, hog memory resources, lock up the database with an excessive amount of calls or create infinite code loops. Working within governor limits requires you to sometimes become creative when writing [...]

Feed

http://blog.jeffdouglas.com / Apex

WordPress Appliance - Powered by TurnKey Linux