My first iPhone app for Salesforce
Thursday, August 16th, 2007
Today I took a couple hours and wrote my first iPhone app. It lets you search your Salesforce.com Contacts and returns a list with email addresses and phone number. When you click on an email address, your email client pops a new message. When you click on a phone number, you can make a call.
It was super easy to do. Formating a site for the iPhone is no more difficult than web design in general. There are a couple tricks to letting safari know the size of the iphone screen, and Apple’s developer guidelines make that a piece of cake.
The hardest part of the process was learning the Salesforce.com search syntax (SOSL) as I’d never used it before and I couldn’t find an example in AJAX until after I floundered a bit. But in only a couple hours I was able to create something that isn’t ugly and will be useful to us here at ONE/Northwest. Ok, useful to me, as I’m the only one here with an iPhone.
The app is just an S-Control, so to access it I hit the URL, which makes me log in at the normal sf.com login screen and then I get redirected there. The right way to bulid this app is to do it in PHP or .NET and have a nice login screen. But this works fine for me.
If you have an iPhone and Salesforce and want to see more, let me know. Thanks again to everyone who chipped in to get me the iPhone–your investment is starting to pay off!


