Welcome to the new site! Some areas are "Coming Soon!" as the content is being migrated.

Archive for the ‘Salesforce.com’ Category

Calculating the day of the week in Apex code

Tuesday, January 12th, 2010

Formatting dates has always been the bane of my existence and tonight, I couldn’t figure out how to calculate the day of the week based on a date when coding in apex on the Force.com platform. I found this wikipedia article: Calculating the day of the week and used it to build the following function.

This function will determine the day of the week for any date, including leap years. It can be cleaned up considerably but I figured I would share my geekery with you all in raw form. (Y3k bug: note the - 2000 to calculate the last two digits of the year.)
(more…)

Introducing my Unofficial Basecamp + Salesforce.com Toolkit

Wednesday, November 18th, 2009

logo

For the Force.com developer hackathon, I developed an integration toolkit between 37Signals‘ Basecamp application for project management and Salesforce.com. This little bit of work earned me the top prize in the Dreamforce 2009 Hackathon so a big thanks to Salesforce.com for putting on the event. It has easily become my favorite part of the Dreamforce conference.

Salesforce.com, in its simplest form, allows for the tracking of business leads, contacts, accounts, opportunities and its development platform extends its functionality to include pretty much whatever a developer can come up with. For many organizations, these salesforce opportunities represent products that are being purchased by another company. What if, however, you are a professional services group? Your services are products in a sense, however the native salesforce.com functionality of products is fairly limited for use for professional services.

Enter Basecamp
Basecamp allows you to manage companies, projects and the various messages, to-do lists, milestones, files and time tracking for each project.

Your Basecamp is in my Salesforce
This Basecamp+Salesforce.com toolkit allows you to tie Salesforce opportunities to Basecamp projects right out of the box. The toolkit includes methods for all of the Basecamp API methods so developers can build their own applications using whichever Salesforce.com objects and business logic they desire using visualforce and apex code.

Due to the time constraints on the Hackathon competition, the toolkit requires a little bit of work on my part before I deem it ready for releasing to the Force.com Code Share.

Features

  • Tie your Salesforce user account to your Basecamp user account
  • Associate opportunities to existing Basecamp projects
  • Create new Basecamp projects from within Salesforce
  • Create, read, edit and delete project messages, to-do lists and milestones
  • Manage completion of to-do lists

Considerations
Both Basecamp and Salesforce have methods for alerting users regarding upcoming tasks. The initial version of this integration relies on Basecamp’s notifications, which can be selected from within Salesforce.

Roadmap
Due to the short timeframe provided during the Dreamforce Hackathon there are a few Basecamp functional areas that were not written into the toolkit. I plan to add these items soon but they may not be in the first version released to the code share.

  • Time tracking
  • Writeboards
  • Files

basecamp_sf

basecamp_sf2

basecamp_sf3

Disclaimer: I am not affiliated with either Salesforce.com, Dreamforce, 37Signals or Basecamp.

what i do -

Lively Labs

Web App Shop

visit

Reno Collective

Coworking Space

visit

things you should go to -

SEP 18-19

WordCamp PDX

in Portland

more

OCT 23

WordCamp Las Vegas

in Las Vegas

more

NOV 15-17

FOWD

in New York City

more

DEC 6-9

Dreamforce

in San Fran

more