feed-icon-32x32.png

Learn how Salesforce.com can help your business
arrowpointe @ twitter
  • iphone vs. bold, iphone vs. bold,. i can't decide! iphone's keyboard scares me. Bold's OTA Google Calendar sync is very useful. :( 2 days ago
  • looking to talk to someone that's called Apex WebServices from PHP. have specific questions. 2 days ago
  • is anyone clear on pricing for authenticated users? is it free and all pricing is page view based? 2 days ago
  • got demo of Avankia's Credit Card Processing in Salesforce.com. Nice product. Better stuff on the way. http://tinyurl.com/5wsrq5 1 week ago
  • downloading my first album from Amazon MP3 store. I like it! I chose Car Alarm by The Sea and Cake (great band). 1 week ago
  • in things that are not marketing campaigns, what's your strategy of using Tags vs. Campaigns in Salesforce? 2 weeks ago
  • going to try youmail.com for my voicemail 2 weeks ago
  • More updates...

Powered by Twitter Tools.



Best Thing about the Salesforce-Google Toolkit

As you probably know, Salesforce announced the Google Data API Toolkit on Monday.  Per the site,

The new Force.com Toolkit for Google Data APIs provides a free and open-source set of tools and services that developers can use to take advantage of Google Data APIs from within Force.com.

The end result for developers is a set of classes, written by Salesforce, that allow you to easily communicate with Google services.  For example, suppose you want to create an entry in Google Calendar, the following code does it.

GoogleData.Calendar cal = service.getCalendarByTitle('MyCalendar');
event newEvent = new Event(
subject = 'Tennis with Beth',
description = 'Meet for a quick lesson.',
ActivityDateTime = system.now(),
DurationInMinutes = 60);

That is actually just 2 lines of code (line #2 was broken into 5 lines for easier reading). The reason you can do this in 2 lines is because of the toolkit.  The toolkit does the “heavy lifting” for you to communicate with Google.

From a developer standpoint, the best thing about this is that, to do this, there is no dependency on changes to the Salesforce platform.  The Google Toolkit was created by the Developer Marketing Team at Salesforce, not the folks building the platform.  Apex Code is already part of the platform. The toolkit uses what Apex Code already offers.  What you get with the toolkit is a set of pre-written Apex classes that do the heavy lifting for you on talking to Google.  Much like the Salesforce Java/PHP/.NET/Ajax/Perl toolkits do the heavy lifting of talking to the SOAP API for you on those programming platforms.

There is no reason that the developer community cannot create similar toolkits.  I am sure Salesforce has some more up their sleeve and did the community a service by building some foundational ones for us to use as working/useful examples.

This is open source at work.  To make an analogy… one thing I love about PHP is that these types of toolkits are prevalent and have made my life much easier. For example, when I wanted to build Auto vCard, I Googled for PHP classes that created files in the vCard spec.  I found many and chose 1.  Similarly with the Web to Lead Spam Check I built.  I chose Akismet as the spam checking service because I was familiar with it and trusted it and I found a PHP5 toolkit that took care of the hard part of communicating with Akismet from PHP.  Same thing with my old Google Maps mashup. There are PHP classes that do the hard part of talking to Google Maps.  Having these classes at my disposal gave me the ability to focus on adding the business value of tying functionality into a Salesforce-related use case.  If these PHP classes didn’t already exist, I never would have created any those apps.

If you are a developer looking to create something similar to what Salesforce did, I suggest you:

  • Visit Programmable Web to identify useful services that could be connected to and learn about their APIs
  • Build your class(es) (Look at the XMLDom class that’s part of the Google toolkit to handle the complicated XML parsing you might need to do)
  • Publish it open source and let the community react/improve it
  • Offer up some example code for how the class can be used to help people implement a use case of it.
  • Become a star

Some services that I think are ripe for developers to concentrate on (that are very applicable to businesses):

  • Google Checkout
  • PayPal
  • Authorize.net
  • Freshbooks
  • Google (Apps) Mail
  • Google Charts (with tie into Visual Force)
  • Blog Services
  • UPS
  • FedEx
  • Google Search
  • Facebook
  • LinkedIn
  • Google Open Social

There are countless others.  Get cracking!

3 Comments »

  1. Brooks Jordan Said,

    June 25, 2008 @ 6:46 pm

    >The end result for developers is a set of classes, written by Salesforce, that allow you to easily communicate with Google services.

    Very cool, Scott. Thanks for letting us know about this.

  2. Kyle Freeman Said,

    June 25, 2008 @ 9:10 pm

    Nice post Scott. I know of at least one company that would find huge value in a FedEx integration…these are all great ideas.

    Can you populate a google document with fields from salesforce.com similar to what you can currently do with mail merge & Microsoft Word?

  3. David S Said,

    July 2, 2008 @ 8:36 pm

    Great list, Scott, of things developers could focus on.
    Some, such as Google Charts, are accessible as formula fields (at their most basic level) and can be inserted into detail pages easily by constructing a URL. I’d love to see this done dynamically, using VF, though. We could effectively create dashboards from scratch!

RSS feed for comments on this post · TrackBack URI

Leave a Comment

All comments are moderated. Other visitors will not see your comment until it has been approved.