Calling a REST Web Service (JSON) with Apex

Cross-posted at the Appirio Tech Blog. Using JSON RESTful Web Services with Salesforce.com opens up your org to a number third-party integration opportunities (Google, Yahoo!, Flickr, bespoke, etc.). JSON support isn't baked into the Force.com platform but Ron Hess at Salesforce.com has created a JSON parser which…

Read more

Automating Salesforce Approval Processes with Apex Triggers

This question came up on LinkedIn asking how to automatically fire off an approval process when an Opportunity reaches 30% probability. This example was on my to do list so I thought I would knock it out quickly. The trigger fires when an Opportunity is updated and is submitted for…

Read more

Problems Parsing JSON Responses with Apex

A couple of weeks ago I wrote an article and small demo of a REST web service call returning XML. It was my intention to do the same demo using JSON. However, I ran into a small sang; I couldn't get the Apex JSONObject to work. I worked on the…

Read more

Calling a REST Web Service (XML) with Apex

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…

Read more

Force.com Demo with Twilio

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…

Read more

Programmatically Creating Sharing Rules with Apex

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…

Read more

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

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…

Read more

Apex "Deep Clone" Controller

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…

Read more

ActionSupport Example using Facets and JavaScript

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…

Read more

New Contest: Twilio for Salesforce with Appirio

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…

Read more